bunchee 3.1.1 → 3.2.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/README.md CHANGED
@@ -45,7 +45,7 @@ You can use the `exports` field to support different conditions and leverage the
45
45
  },
46
46
  "scripts": {
47
47
  "build": "bunchee"
48
- },
48
+ }
49
49
  }
50
50
  ```
51
51
 
package/dist/cli.js CHANGED
@@ -97,7 +97,7 @@ function _fileExists() {
97
97
  return _fileExists.apply(this, arguments);
98
98
  }
99
99
 
100
- var version = "3.1.1";
100
+ var version = "3.2.1";
101
101
 
102
102
  function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
103
103
  try {
package/dist/index.js CHANGED
@@ -3,6 +3,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
3
3
  var fs = require('fs/promises');
4
4
  var path = require('path');
5
5
  var rollup = require('rollup');
6
+ var pluginWasm = require('@rollup/plugin-wasm');
6
7
  var rollupPluginSwc3 = require('rollup-plugin-swc3');
7
8
  var commonjs = require('@rollup/plugin-commonjs');
8
9
  var shebang = require('rollup-plugin-preserve-shebang');
@@ -447,6 +448,7 @@ function buildInputConfig(entry, pkg, options, cwd, { tsConfigPath , tsCompilerO
447
448
  preferBuiltins: runtime === 'node',
448
449
  extensions: [
449
450
  '.mjs',
451
+ '.cjs',
450
452
  '.js',
451
453
  '.json',
452
454
  '.node',
@@ -457,6 +459,7 @@ function buildInputConfig(entry, pkg, options, cwd, { tsConfigPath , tsCompilerO
457
459
  include: /node_modules\//
458
460
  }),
459
461
  json__default.default(),
462
+ pluginWasm.wasm(),
460
463
  rollupPluginSwc3.swc({
461
464
  include: /\.(m|c)?[jt]sx?$/,
462
465
  exclude: 'node_modules',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bunchee",
3
- "version": "3.1.1",
3
+ "version": "3.2.1",
4
4
  "description": "zero config bundler for js/ts/jsx libraries",
5
5
  "bin": {
6
6
  "bunchee": "./dist/cli.js"
@@ -49,6 +49,7 @@
49
49
  "@rollup/plugin-json": "6.0.0",
50
50
  "@rollup/plugin-node-resolve": "15.0.2",
51
51
  "@rollup/plugin-replace": "5.0.2",
52
+ "@rollup/plugin-wasm": "6.1.3",
52
53
  "@swc/core": "1.3.46",
53
54
  "@swc/helpers": "0.5.0",
54
55
  "arg": "5.0.2",