bunchee 2.0.0 → 2.0.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/cli.js CHANGED
@@ -87,7 +87,7 @@ var logger = {
87
87
  }
88
88
  };
89
89
 
90
- var version = "2.0.0";
90
+ var version = "2.0.1";
91
91
 
92
92
  var helpMessage = '\nUsage: bunchee [options]\n\nOptions:\n -v, --version output the version number\n -w, --watch watch src files changes\n -m, --minify compress output. false by default\n -o, --output <file> specify output filename\n -f, --format <format> specify bundle type: "esm", "cjs", "umd". "esm" by default\n -e, --external <mod> specify an external dependency\n --target <target> js features target: swc target es versions. "es5" by default\n --runtime <runtime> build runtime: "nodejs", "browser". "browser" by default\n --sourcemap enable sourcemap generation, false by default\n --cwd <cwd> specify current working directory\n -h, --help output usage information\n';
93
93
  function help() {
package/dist/lib.js CHANGED
@@ -150,7 +150,7 @@ function createInputConfig(entry, pkg, options) {
150
150
  typescript: resolveTypescript(),
151
151
  jsx: "react",
152
152
  module: "ES6",
153
- target: "ES5",
153
+ target: jscTarget,
154
154
  noEmitOnError: !options.watch,
155
155
  sourceMap: options.sourcemap,
156
156
  declaration: !!typings,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bunchee",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
4
4
  "description": "zero config bundler for js/ts/jsx libraries",
5
5
  "bin": {
6
6
  "bunchee": "./dist/cli.js"