bunchee 6.5.2 → 6.5.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin/cli.js +1 -1
- package/dist/index.js +11 -5
- package/package.json +5 -2
package/dist/bin/cli.js
CHANGED
|
@@ -646,7 +646,7 @@ function lint$1(pkg) {
|
|
|
646
646
|
}
|
|
647
647
|
}
|
|
648
648
|
|
|
649
|
-
var version = "6.5.
|
|
649
|
+
var version = "6.5.3";
|
|
650
650
|
|
|
651
651
|
async function writeDefaultTsconfig(tsConfigPath) {
|
|
652
652
|
await fs.promises.writeFile(tsConfigPath, JSON.stringify(DEFAULT_TS_CONFIG, null, 2), 'utf-8');
|
package/dist/index.js
CHANGED
|
@@ -1723,6 +1723,7 @@ async function buildOutputConfigs(bundleConfig, exportCondition, buildContext, d
|
|
|
1723
1723
|
const entryFiles = new Set(Object.values(entries).map((entry)=>entry.source));
|
|
1724
1724
|
const outputOptions = {
|
|
1725
1725
|
name: pkg.name || name,
|
|
1726
|
+
extend: true,
|
|
1726
1727
|
dir: dts ? typesDir : jsDir,
|
|
1727
1728
|
format,
|
|
1728
1729
|
exports: 'named',
|
|
@@ -1757,8 +1758,13 @@ async function buildEntryConfig(bundleConfig, pluginContext, bundleEntryOptions)
|
|
|
1757
1758
|
async function buildRollupConfigs(entry, bundleConfig, exportCondition, buildContext, dts) {
|
|
1758
1759
|
const inputOptions = await buildInputConfig(entry, bundleConfig, exportCondition, buildContext, dts);
|
|
1759
1760
|
const outputOptions = await buildOutputConfigs(bundleConfig, exportCondition, buildContext, dts);
|
|
1761
|
+
const { input, external, plugins, treeshake, onwarn } = inputOptions;
|
|
1760
1762
|
return {
|
|
1761
|
-
input
|
|
1763
|
+
input,
|
|
1764
|
+
external,
|
|
1765
|
+
plugins,
|
|
1766
|
+
treeshake,
|
|
1767
|
+
onwarn,
|
|
1762
1768
|
output: outputOptions
|
|
1763
1769
|
};
|
|
1764
1770
|
}
|
|
@@ -1887,15 +1893,15 @@ async function bundleOrWatch(options, rollupConfig) {
|
|
|
1887
1893
|
}
|
|
1888
1894
|
return runBundle(rollupConfig);
|
|
1889
1895
|
}
|
|
1890
|
-
function runBundle({
|
|
1891
|
-
return rollup.rollup(
|
|
1896
|
+
function runBundle({ output, ...restOptions }) {
|
|
1897
|
+
return rollup.rollup(restOptions).then((bundle)=>{
|
|
1892
1898
|
return bundle.write(output);
|
|
1893
1899
|
}, catchErrorHandler);
|
|
1894
1900
|
}
|
|
1895
|
-
function runWatch({
|
|
1901
|
+
function runWatch({ output, ...restOptions }) {
|
|
1896
1902
|
const watchOptions = [
|
|
1897
1903
|
{
|
|
1898
|
-
...
|
|
1904
|
+
...restOptions,
|
|
1899
1905
|
output: output,
|
|
1900
1906
|
watch: {
|
|
1901
1907
|
exclude: [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bunchee",
|
|
3
|
-
"version": "6.5.
|
|
3
|
+
"version": "6.5.3",
|
|
4
4
|
"description": "zero config bundler for js/ts/jsx libraries",
|
|
5
5
|
"bin": "./dist/bin/cli.js",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -73,6 +73,7 @@
|
|
|
73
73
|
"@huozhi/testing-package": "1.0.0",
|
|
74
74
|
"@swc-node/register": "^1.10.9",
|
|
75
75
|
"@swc/types": "^0.1.17",
|
|
76
|
+
"@tailwindcss/postcss": "^4.1.8",
|
|
76
77
|
"@types/clean-css": "^4.2.11",
|
|
77
78
|
"@types/node": "^22.9.3",
|
|
78
79
|
"@types/picomatch": "^3.0.1",
|
|
@@ -82,11 +83,13 @@
|
|
|
82
83
|
"cross-env": "^7.0.3",
|
|
83
84
|
"husky": "^9.0.11",
|
|
84
85
|
"lint-staged": "^15.2.2",
|
|
85
|
-
"next": "^15.
|
|
86
|
+
"next": "^15.3.3",
|
|
86
87
|
"picocolors": "^1.0.0",
|
|
88
|
+
"postcss": "^8.5.4",
|
|
87
89
|
"prettier": "3.4.2",
|
|
88
90
|
"react": "^19.0.0",
|
|
89
91
|
"react-dom": "^19.0.0",
|
|
92
|
+
"tailwindcss": "^4.1.8",
|
|
90
93
|
"typescript": "^5.7.2",
|
|
91
94
|
"vitest": "^3.0.4"
|
|
92
95
|
},
|