bunchee 6.0.0-beta.0 → 6.0.0-beta.1

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 CHANGED
@@ -539,7 +539,7 @@ function lint$1(pkg) {
539
539
  }
540
540
  }
541
541
 
542
- var version = "6.0.0-beta.0";
542
+ var version = "6.0.0-beta.1";
543
543
 
544
544
  async function writeDefaultTsconfig(tsConfigPath) {
545
545
  await fs.promises.writeFile(tsConfigPath, JSON.stringify(DEFAULT_TS_CONFIG, null, 2), 'utf-8');
package/dist/index.js CHANGED
@@ -1333,28 +1333,6 @@ function aliasEntries({ entry: sourceFilePath, conditionNames, entries, format,
1333
1333
  };
1334
1334
  }
1335
1335
 
1336
- function prependDirectives() {
1337
- return {
1338
- name: 'prependDirective',
1339
- transform: {
1340
- order: 'post',
1341
- handler (code, id) {
1342
- var _moduleInfo_meta;
1343
- const moduleInfo = this.getModuleInfo(id);
1344
- if (moduleInfo == null ? void 0 : (_moduleInfo_meta = moduleInfo.meta) == null ? void 0 : _moduleInfo_meta.preserveDirectives) {
1345
- const firstDirective = moduleInfo.meta.preserveDirectives.directives[0];
1346
- if (firstDirective) {
1347
- const directive = firstDirective.value;
1348
- const directiveCode = `'${directive}';`;
1349
- return directiveCode + '\n' + code;
1350
- }
1351
- }
1352
- return null;
1353
- }
1354
- }
1355
- };
1356
- }
1357
-
1358
1336
  const prependShebang = (entry)=>({
1359
1337
  name: 'prependShebang',
1360
1338
  transform: (code, id)=>{
@@ -1538,8 +1516,7 @@ async function buildInputConfig(entry, bundleConfig, exportCondition, buildConte
1538
1516
  }),
1539
1517
  commonjs__default.default({
1540
1518
  exclude: bundleConfig.external || null
1541
- }),
1542
- prependDirectives()
1519
+ })
1543
1520
  ]).filter(isNotNull);
1544
1521
  return {
1545
1522
  input: entry,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bunchee",
3
- "version": "6.0.0-beta.0",
3
+ "version": "6.0.0-beta.1",
4
4
  "description": "zero config bundler for js/ts/jsx libraries",
5
5
  "bin": "./dist/bin/cli.js",
6
6
  "main": "./dist/index.js",
@@ -52,7 +52,7 @@
52
52
  "rollup": "^4.27.4",
53
53
  "rollup-plugin-dts": "^6.1.1",
54
54
  "rollup-plugin-swc3": "^0.11.1",
55
- "rollup-preserve-directives": "^1.1.2",
55
+ "rollup-preserve-directives": "^1.1.3",
56
56
  "tslib": "^2.7.0",
57
57
  "yargs": "^17.7.2"
58
58
  },