bunchee 4.3.1 → 4.3.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 +42 -41
- package/dist/index.js +45 -35
- package/package.json +3 -3
package/dist/bin/cli.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
var path = require('path');
|
|
3
3
|
var arg = require('arg');
|
|
4
|
+
var fs = require('fs');
|
|
4
5
|
var fsp = require('fs/promises');
|
|
5
6
|
var require$$0 = require('tty');
|
|
6
7
|
var bunchee = require('bunchee');
|
|
7
|
-
var fs = require('fs');
|
|
8
8
|
|
|
9
9
|
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
10
10
|
|
|
11
11
|
var path__default = /*#__PURE__*/_interopDefault(path);
|
|
12
12
|
var arg__default = /*#__PURE__*/_interopDefault(arg);
|
|
13
|
+
var fs__default = /*#__PURE__*/_interopDefault(fs);
|
|
13
14
|
var fsp__default = /*#__PURE__*/_interopDefault(fsp);
|
|
14
15
|
var require$$0__default = /*#__PURE__*/_interopDefault(require$$0);
|
|
15
|
-
var fs__default = /*#__PURE__*/_interopDefault(fs);
|
|
16
16
|
|
|
17
|
-
const availableExtensions = [
|
|
17
|
+
const availableExtensions = new Set([
|
|
18
18
|
'js',
|
|
19
19
|
'cjs',
|
|
20
20
|
'mjs',
|
|
@@ -23,19 +23,19 @@ const availableExtensions = [
|
|
|
23
23
|
'tsx',
|
|
24
24
|
'cts',
|
|
25
25
|
'mts'
|
|
26
|
-
];
|
|
26
|
+
]);
|
|
27
27
|
const SRC = 'src';
|
|
28
28
|
const dtsExtensionsMap = {
|
|
29
29
|
js: 'd.ts',
|
|
30
30
|
cjs: 'd.cts',
|
|
31
31
|
mjs: 'd.mts'
|
|
32
32
|
};
|
|
33
|
-
const tsExtensions = [
|
|
33
|
+
const tsExtensions = new Set([
|
|
34
34
|
'ts',
|
|
35
35
|
'tsx',
|
|
36
36
|
'cts',
|
|
37
37
|
'mts'
|
|
38
|
-
];
|
|
38
|
+
]);
|
|
39
39
|
|
|
40
40
|
function getDefaultExportFromCjs (x) {
|
|
41
41
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
@@ -119,8 +119,8 @@ function exit(err) {
|
|
|
119
119
|
logger.error(err);
|
|
120
120
|
process.exit(1);
|
|
121
121
|
}
|
|
122
|
-
|
|
123
|
-
return
|
|
122
|
+
function hasPackageJson(cwd) {
|
|
123
|
+
return fileExists(path__default.default.resolve(cwd, 'package.json'));
|
|
124
124
|
}
|
|
125
125
|
async function getPackageMeta(cwd) {
|
|
126
126
|
const pkgFilePath = path__default.default.resolve(cwd, 'package.json');
|
|
@@ -134,29 +134,27 @@ async function getPackageMeta(cwd) {
|
|
|
134
134
|
}
|
|
135
135
|
function isTypescriptFile(filename) {
|
|
136
136
|
const ext = path__default.default.extname(filename).slice(1);
|
|
137
|
-
return tsExtensions.
|
|
137
|
+
return tsExtensions.has(ext);
|
|
138
138
|
}
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
await fsp__default.default.access(filePath);
|
|
142
|
-
return true;
|
|
143
|
-
} catch (err) {
|
|
144
|
-
if (err.code === 'ENOENT') {
|
|
145
|
-
return false;
|
|
146
|
-
}
|
|
147
|
-
throw err;
|
|
148
|
-
}
|
|
139
|
+
function fileExists(filePath) {
|
|
140
|
+
return fs__default.default.existsSync(filePath);
|
|
149
141
|
}
|
|
150
|
-
const hasAvailableExtension = (filename)=>availableExtensions.
|
|
142
|
+
const hasAvailableExtension = (filename)=>availableExtensions.has(path__default.default.extname(filename).slice(1));
|
|
151
143
|
const baseNameWithoutExtension = (filename)=>path__default.default.basename(filename, path__default.default.extname(filename));
|
|
152
144
|
|
|
153
|
-
var version = "4.3.
|
|
145
|
+
var version = "4.3.3";
|
|
154
146
|
|
|
155
147
|
function relativify(path) {
|
|
156
148
|
return path.startsWith('.') ? path : `./${path}`;
|
|
157
149
|
}
|
|
158
150
|
|
|
159
151
|
const DIST = 'dist';
|
|
152
|
+
const DEFAULT_TS_CONFIG = {
|
|
153
|
+
compilerOptions: {
|
|
154
|
+
module: 'ESNext',
|
|
155
|
+
moduleResolution: 'bundler'
|
|
156
|
+
}
|
|
157
|
+
};
|
|
160
158
|
// Output with posix style in package.json
|
|
161
159
|
function getDistPath(...subPaths) {
|
|
162
160
|
return `./${DIST}/${subPaths.join('/')}`;
|
|
@@ -201,18 +199,17 @@ async function collectSourceEntries(sourceFolderPath) {
|
|
|
201
199
|
});
|
|
202
200
|
for (const binDirent of binDirentList){
|
|
203
201
|
if (binDirent.isFile()) {
|
|
204
|
-
const
|
|
202
|
+
const binFileAbsolutePath = path__default.default.join(sourceFolderPath, dirent.name, binDirent.name);
|
|
205
203
|
const binName = baseNameWithoutExtension(binDirent.name);
|
|
206
|
-
if (fs__default.default.existsSync(
|
|
204
|
+
if (fs__default.default.existsSync(binFileAbsolutePath)) {
|
|
207
205
|
bins.set(binName, binDirent.name);
|
|
208
206
|
}
|
|
209
207
|
}
|
|
210
208
|
}
|
|
211
209
|
} else {
|
|
212
210
|
// Search folder/<index>.<ext> convention entries
|
|
213
|
-
const
|
|
214
|
-
|
|
215
|
-
const indexFile = path__default.default.join(sourceFolderPath, dirent.name, `index.${extension}`);
|
|
211
|
+
for (const extension of availableExtensions){
|
|
212
|
+
const indexFile = path__default.default.join(dirent.name, `index.${extension}`);
|
|
216
213
|
if (fs__default.default.existsSync(indexFile)) {
|
|
217
214
|
exportsEntries.set(dirent.name, indexFile);
|
|
218
215
|
break;
|
|
@@ -220,7 +217,7 @@ async function collectSourceEntries(sourceFolderPath) {
|
|
|
220
217
|
}
|
|
221
218
|
}
|
|
222
219
|
} else if (dirent.isFile()) {
|
|
223
|
-
const isAvailableExtension = availableExtensions.
|
|
220
|
+
const isAvailableExtension = availableExtensions.has(path__default.default.extname(dirent.name).slice(1));
|
|
224
221
|
if (isAvailableExtension) {
|
|
225
222
|
const baseName = baseNameWithoutExtension(dirent.name);
|
|
226
223
|
const isBinFile = baseName === 'bin';
|
|
@@ -285,18 +282,18 @@ async function prepare(cwd) {
|
|
|
285
282
|
// Collect bins and exports entries
|
|
286
283
|
const { bins, exportsEntries } = await collectSourceEntries(sourceFolder);
|
|
287
284
|
const tsconfigPath = path__default.default.join(cwd, 'tsconfig.json');
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
await fsp__default.default.writeFile(tsconfigPath,
|
|
298
|
-
logger.log(`Detected using TypeScript but tsconfig.json is missing, created a ${pc.blue('tsconfig.json')} for you.`);
|
|
285
|
+
const sourceFiles = [
|
|
286
|
+
...exportsEntries.values()
|
|
287
|
+
].concat([
|
|
288
|
+
...bins.values()
|
|
289
|
+
]);
|
|
290
|
+
const hasTypeScriptFiles = sourceFiles.some((filename)=>isTypescriptFile(filename));
|
|
291
|
+
if (hasTypeScriptFiles) {
|
|
292
|
+
isUsingTs = true;
|
|
293
|
+
if (!fs__default.default.existsSync(tsconfigPath)) {
|
|
294
|
+
await fsp__default.default.writeFile(tsconfigPath, JSON.stringify(DEFAULT_TS_CONFIG, null, 2), 'utf-8');
|
|
299
295
|
}
|
|
296
|
+
logger.log(`Detected using TypeScript but tsconfig.json is missing, created a ${pc.blue('tsconfig.json')} for you.`);
|
|
300
297
|
}
|
|
301
298
|
// Configure as ESM package by default if there's no package.json
|
|
302
299
|
if (!hasPackageJson) {
|
|
@@ -338,10 +335,14 @@ async function prepare(cwd) {
|
|
|
338
335
|
const isESM = pkgJson.type === 'module';
|
|
339
336
|
const mainExport = pkgExports['.'];
|
|
340
337
|
const mainCondition = isESM ? 'import' : 'require';
|
|
341
|
-
pkgJson.main
|
|
342
|
-
|
|
338
|
+
if (!pkgJson.main) {
|
|
339
|
+
pkgJson.main = isUsingTs ? mainExport[mainCondition].default : mainExport[mainCondition];
|
|
340
|
+
}
|
|
341
|
+
if (!pkgJson.module) {
|
|
342
|
+
pkgJson.module = isUsingTs ? mainExport.import.default : mainExport.import;
|
|
343
|
+
}
|
|
343
344
|
if (isUsingTs) {
|
|
344
|
-
pkgJson.types =
|
|
345
|
+
pkgJson.types = mainExport[mainCondition].types;
|
|
345
346
|
}
|
|
346
347
|
}
|
|
347
348
|
// Assign the properties by order: files, main, module, types, exports
|
package/dist/index.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2
2
|
|
|
3
|
-
var fs = require('fs/promises');
|
|
4
|
-
var path = require('path');
|
|
5
3
|
var rollup = require('rollup');
|
|
4
|
+
var fsp = require('fs/promises');
|
|
5
|
+
var fs = require('fs');
|
|
6
|
+
var path = require('path');
|
|
6
7
|
var module$1 = require('module');
|
|
7
8
|
var require$$0 = require('tty');
|
|
8
9
|
var pluginWasm = require('@rollup/plugin-wasm');
|
|
@@ -18,6 +19,7 @@ var prettyBytes = require('pretty-bytes');
|
|
|
18
19
|
|
|
19
20
|
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
20
21
|
|
|
22
|
+
var fsp__default = /*#__PURE__*/_interopDefault(fsp);
|
|
21
23
|
var fs__default = /*#__PURE__*/_interopDefault(fs);
|
|
22
24
|
var path__default = /*#__PURE__*/_interopDefault(path);
|
|
23
25
|
var require$$0__default = /*#__PURE__*/_interopDefault(require$$0);
|
|
@@ -28,7 +30,7 @@ var esmShim__default = /*#__PURE__*/_interopDefault(esmShim);
|
|
|
28
30
|
var preserveDirectives__default = /*#__PURE__*/_interopDefault(preserveDirectives);
|
|
29
31
|
var prettyBytes__default = /*#__PURE__*/_interopDefault(prettyBytes);
|
|
30
32
|
|
|
31
|
-
const availableExtensions = [
|
|
33
|
+
const availableExtensions = new Set([
|
|
32
34
|
'js',
|
|
33
35
|
'cjs',
|
|
34
36
|
'mjs',
|
|
@@ -37,7 +39,7 @@ const availableExtensions = [
|
|
|
37
39
|
'tsx',
|
|
38
40
|
'cts',
|
|
39
41
|
'mts'
|
|
40
|
-
];
|
|
42
|
+
]);
|
|
41
43
|
const nodeResolveExtensions = [
|
|
42
44
|
'.mjs',
|
|
43
45
|
'.cjs',
|
|
@@ -46,11 +48,11 @@ const nodeResolveExtensions = [
|
|
|
46
48
|
'.node',
|
|
47
49
|
'.jsx'
|
|
48
50
|
];
|
|
49
|
-
const availableExportConventions = [
|
|
51
|
+
const availableExportConventions = new Set([
|
|
50
52
|
'react-server',
|
|
51
53
|
'react-native',
|
|
52
54
|
'edge-light'
|
|
53
|
-
];
|
|
55
|
+
]);
|
|
54
56
|
const availableESExtensionsRegex = /\.(m|c)?[jt]sx?$/;
|
|
55
57
|
const SRC = 'src';
|
|
56
58
|
const dtsExtensionsMap = {
|
|
@@ -146,22 +148,14 @@ async function getPackageMeta(cwd) {
|
|
|
146
148
|
const pkgFilePath = path__default.default.resolve(cwd, 'package.json');
|
|
147
149
|
let targetPackageJson = {};
|
|
148
150
|
try {
|
|
149
|
-
targetPackageJson = JSON.parse(await
|
|
151
|
+
targetPackageJson = JSON.parse(await fsp__default.default.readFile(pkgFilePath, {
|
|
150
152
|
encoding: 'utf-8'
|
|
151
153
|
}));
|
|
152
154
|
} catch (_) {}
|
|
153
155
|
return targetPackageJson;
|
|
154
156
|
}
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
await fs__default.default.access(filePath);
|
|
158
|
-
return true;
|
|
159
|
-
} catch (err) {
|
|
160
|
-
if (err.code === 'ENOENT') {
|
|
161
|
-
return false;
|
|
162
|
-
}
|
|
163
|
-
throw err;
|
|
164
|
-
}
|
|
157
|
+
function fileExists(filePath) {
|
|
158
|
+
return fs__default.default.existsSync(filePath);
|
|
165
159
|
}
|
|
166
160
|
// . -> pkg name
|
|
167
161
|
// ./lite -> <pkg name>/lite
|
|
@@ -174,14 +168,14 @@ const isNotNull = (n)=>Boolean(n);
|
|
|
174
168
|
function resolveSourceFile(cwd, filename) {
|
|
175
169
|
return path__default.default.resolve(cwd, SRC, filename);
|
|
176
170
|
}
|
|
177
|
-
|
|
171
|
+
function findSourceEntryFile(cwd, exportPath, exportTypeSuffix, ext) {
|
|
178
172
|
const filename = resolveSourceFile(cwd, `${exportPath}${exportTypeSuffix ? `.${exportTypeSuffix}` : ''}.${ext}`);
|
|
179
|
-
if (
|
|
173
|
+
if (fileExists(filename)) {
|
|
180
174
|
return filename;
|
|
181
175
|
}
|
|
182
176
|
const subFolderIndexFilename = resolveSourceFile(cwd, `${exportPath}/index${exportTypeSuffix ? `.${exportTypeSuffix}` : ''}.${ext}`);
|
|
183
177
|
try {
|
|
184
|
-
if (
|
|
178
|
+
if (fileExists(subFolderIndexFilename)) {
|
|
185
179
|
return subFolderIndexFilename;
|
|
186
180
|
}
|
|
187
181
|
} catch {}
|
|
@@ -197,7 +191,7 @@ async function getSourcePathFromExportPath(cwd, exportPath, exportType) {
|
|
|
197
191
|
if (exportPath === '.') exportPath = './index';
|
|
198
192
|
// Find convention-based source file for specific export types
|
|
199
193
|
// $binary represents `pkg.bin`
|
|
200
|
-
if (availableExportConventions.
|
|
194
|
+
if (availableExportConventions.has(exportType) && exportType !== '$binary') {
|
|
201
195
|
const filename = await findSourceEntryFile(cwd, exportPath, exportType, ext);
|
|
202
196
|
if (filename) return filename;
|
|
203
197
|
}
|
|
@@ -211,7 +205,7 @@ function filePathWithoutExtension(file) {
|
|
|
211
205
|
return file ? file.replace(new RegExp(`${path__default.default.extname(file)}$`), '') : undefined;
|
|
212
206
|
}
|
|
213
207
|
const nonNullable = (n)=>Boolean(n);
|
|
214
|
-
const hasAvailableExtension = (filename)=>availableExtensions.
|
|
208
|
+
const hasAvailableExtension = (filename)=>availableExtensions.has(path__default.default.extname(filename).slice(1));
|
|
215
209
|
const hasCjsExtension = (filename)=>path__default.default.extname(filename) === '.cjs';
|
|
216
210
|
|
|
217
211
|
let hasLoggedTsWarning = false;
|
|
@@ -230,11 +224,11 @@ function resolveTypescript(cwd) {
|
|
|
230
224
|
}
|
|
231
225
|
return ts;
|
|
232
226
|
}
|
|
233
|
-
|
|
227
|
+
function resolveTsConfig(cwd) {
|
|
234
228
|
let tsCompilerOptions = {};
|
|
235
229
|
let tsConfigPath;
|
|
236
230
|
tsConfigPath = path.resolve(cwd, 'tsconfig.json');
|
|
237
|
-
if (
|
|
231
|
+
if (fileExists(tsConfigPath)) {
|
|
238
232
|
const ts = resolveTypescript(cwd);
|
|
239
233
|
const basePath = tsConfigPath ? path.dirname(tsConfigPath) : cwd;
|
|
240
234
|
const tsconfigJSON = ts.readConfigFile(tsConfigPath, ts.sys.readFile).config;
|
|
@@ -1019,7 +1013,7 @@ async function buildEntryConfig(bundleConfig, pluginContext, dts) {
|
|
|
1019
1013
|
...exportCondRef
|
|
1020
1014
|
};
|
|
1021
1015
|
// Special cases of export type, only pass down the exportPaths for the type
|
|
1022
|
-
if (availableExportConventions.
|
|
1016
|
+
if (availableExportConventions.has(exportType)) {
|
|
1023
1017
|
exportCondForType = {
|
|
1024
1018
|
[entryExport]: exportCondRef[exportType]
|
|
1025
1019
|
};
|
|
@@ -1151,6 +1145,8 @@ function relativify(path) {
|
|
|
1151
1145
|
return path.startsWith('.') ? path : `./${path}`;
|
|
1152
1146
|
}
|
|
1153
1147
|
|
|
1148
|
+
// Example: @foo/bar -> bar
|
|
1149
|
+
const removeScope = (exportPath)=>exportPath.replace(/^@[^/]+\//, '');
|
|
1154
1150
|
function createOutputState({ entries }) {
|
|
1155
1151
|
const sizeStats = new Map();
|
|
1156
1152
|
function addSize({ fileName, size, sourceFileName, exportPath }) {
|
|
@@ -1183,7 +1179,7 @@ function createOutputState({ entries }) {
|
|
|
1183
1179
|
}
|
|
1184
1180
|
const size = chunk.code.length;
|
|
1185
1181
|
const sourceFileName = chunk.facadeModuleId || '';
|
|
1186
|
-
const exportPath = reversedMapping.get(sourceFileName) || '.';
|
|
1182
|
+
const exportPath = removeScope(reversedMapping.get(sourceFileName) || '.');
|
|
1187
1183
|
addSize({
|
|
1188
1184
|
fileName: path__default.default.isAbsolute(cwd) ? path__default.default.relative(cwd, filePath) : filePath,
|
|
1189
1185
|
size,
|
|
@@ -1275,7 +1271,7 @@ const getWildcardExports = (exportsCondition)=>{
|
|
|
1275
1271
|
};
|
|
1276
1272
|
const isExportable = async (dirent, pathname)=>{
|
|
1277
1273
|
if (dirent.isDirectory()) {
|
|
1278
|
-
const innerDirents = await
|
|
1274
|
+
const innerDirents = await fsp__default.default.readdir(path__default.default.join(pathname, dirent.name), {
|
|
1279
1275
|
withFileTypes: true
|
|
1280
1276
|
});
|
|
1281
1277
|
return innerDirents.some(({ name })=>name.startsWith('index') && hasAvailableExtension(name));
|
|
@@ -1284,7 +1280,7 @@ const isExportable = async (dirent, pathname)=>{
|
|
|
1284
1280
|
};
|
|
1285
1281
|
async function getExportables(cwd, excludeKeys) {
|
|
1286
1282
|
const pathname = path__default.default.resolve(cwd, SRC);
|
|
1287
|
-
const dirents = await
|
|
1283
|
+
const dirents = await fsp__default.default.readdir(pathname, {
|
|
1288
1284
|
withFileTypes: true
|
|
1289
1285
|
});
|
|
1290
1286
|
const exportables = await Promise.all(dirents.map(async (dirent)=>await isExportable(dirent, pathname) && !excludeKeys.includes(dirent.name) ? dirent.name : undefined));
|
|
@@ -1386,12 +1382,21 @@ async function bundle(entryPath, { cwd: _cwd, ...options } = {}) {
|
|
|
1386
1382
|
}
|
|
1387
1383
|
return runBundle(rollupConfig);
|
|
1388
1384
|
};
|
|
1389
|
-
const hasSpecifiedEntryFile = entryPath ?
|
|
1385
|
+
const hasSpecifiedEntryFile = entryPath ? fs__default.default.existsSync(entryPath) && (await fsp__default.default.stat(entryPath)).isFile() : false;
|
|
1390
1386
|
const hasNoEntry = !hasSpecifiedEntryFile && !isMultiEntries && !hasBin;
|
|
1391
1387
|
if (hasNoEntry) {
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1388
|
+
if (entryPath) {
|
|
1389
|
+
const err = new Error(`Entry file "${entryPath}" does not exist`);
|
|
1390
|
+
err.name = 'NOT_EXISTED';
|
|
1391
|
+
return Promise.reject(err);
|
|
1392
|
+
} else if (cwd) {
|
|
1393
|
+
const hasProjectDir = fs__default.default.existsSync(cwd) && (await fsp__default.default.stat(cwd)).isDirectory();
|
|
1394
|
+
if (!hasProjectDir) {
|
|
1395
|
+
const err = new Error(`Project directory "${cwd}" does not exist`);
|
|
1396
|
+
err.name = 'NOT_EXISTED';
|
|
1397
|
+
return Promise.reject(err);
|
|
1398
|
+
}
|
|
1399
|
+
}
|
|
1395
1400
|
}
|
|
1396
1401
|
const entries = await collectEntries(pkg, entryPath, exportPaths, cwd);
|
|
1397
1402
|
const sizeCollector = createOutputState({
|
|
@@ -1437,7 +1442,8 @@ function runWatch({ input, output }, metadata) {
|
|
|
1437
1442
|
switch(event.code){
|
|
1438
1443
|
case 'ERROR':
|
|
1439
1444
|
{
|
|
1440
|
-
|
|
1445
|
+
logError(event.error);
|
|
1446
|
+
break;
|
|
1441
1447
|
}
|
|
1442
1448
|
case 'START':
|
|
1443
1449
|
{
|
|
@@ -1457,14 +1463,18 @@ function runBundle({ input, output }) {
|
|
|
1457
1463
|
return rollup.rollup(input).then((bundle)=>{
|
|
1458
1464
|
const writeJobs = output.map((options)=>bundle.write(options));
|
|
1459
1465
|
return Promise.all(writeJobs);
|
|
1460
|
-
},
|
|
1466
|
+
}, catchErrorHandler);
|
|
1461
1467
|
}
|
|
1462
|
-
function
|
|
1468
|
+
function logError(error) {
|
|
1463
1469
|
if (!error) return;
|
|
1464
1470
|
// logging source code in format
|
|
1465
1471
|
if (error.frame) {
|
|
1466
1472
|
process.stderr.write(error.frame + '\n');
|
|
1467
1473
|
}
|
|
1474
|
+
}
|
|
1475
|
+
function catchErrorHandler(error) {
|
|
1476
|
+
if (!error) return;
|
|
1477
|
+
logError(error);
|
|
1468
1478
|
// filter out the rollup plugin error information such as loc/frame/code...
|
|
1469
1479
|
const err = new Error(error.message);
|
|
1470
1480
|
err.stack = error.stack;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bunchee",
|
|
3
|
-
"version": "4.3.
|
|
3
|
+
"version": "4.3.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",
|
|
@@ -54,12 +54,12 @@
|
|
|
54
54
|
"@rollup/plugin-replace": "^5.0.5",
|
|
55
55
|
"@rollup/plugin-wasm": "^6.2.2",
|
|
56
56
|
"@rollup/pluginutils": "^5.1.0",
|
|
57
|
-
"@swc/core": "^1.3.
|
|
57
|
+
"@swc/core": "^1.3.102",
|
|
58
58
|
"@swc/helpers": "^0.5.3",
|
|
59
59
|
"arg": "^5.0.2",
|
|
60
60
|
"pretty-bytes": "^5.6.0",
|
|
61
61
|
"publint": "~0.2.7",
|
|
62
|
-
"rollup": "^4.9.
|
|
62
|
+
"rollup": "^4.9.4",
|
|
63
63
|
"rollup-plugin-dts": "^6.1.0",
|
|
64
64
|
"rollup-plugin-swc3": "^0.11.0",
|
|
65
65
|
"rollup-preserve-directives": "^1.1.1",
|