bunchee 4.2.8 → 4.2.9

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
@@ -115,7 +115,7 @@ async function fileExists(filePath) {
115
115
  }
116
116
  }
117
117
 
118
- var version = "4.2.8";
118
+ var version = "4.2.9";
119
119
 
120
120
  const helpMessage = `
121
121
  Usage: bunchee [options]
package/dist/index.js CHANGED
@@ -805,6 +805,10 @@ async function buildInputConfig(entry, entries, pkg, options, cwd, { tsConfigPat
805
805
  declarationMap: false,
806
806
  skipLibCheck: true,
807
807
  target: 'ESNext',
808
+ // Some react types required this to be false by default.
809
+ // Some type package like express might need this as it has other dependencies.
810
+ // Let users able to toggle this in tsconfig.
811
+ preserveSymlinks: 'preserveSymlinks' in tsCompilerOptions ? tsCompilerOptions.preserveSymlinks : false,
808
812
  ...!tsCompilerOptions.jsx ? {
809
813
  jsx: 'react-jsx'
810
814
  } : undefined,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bunchee",
3
- "version": "4.2.8",
3
+ "version": "4.2.9",
4
4
  "description": "zero config bundler for js/ts/jsx libraries",
5
5
  "bin": "./dist/bin/cli.js",
6
6
  "main": "./dist/index.js",