@modern-js/uni-builder 0.0.0-nightly-20240205170627 → 0.0.0-nightly-20240207170628

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.
@@ -96,7 +96,16 @@ const pluginTsLoader = (options, babelOptions) => {
96
96
  excludes
97
97
  });
98
98
  chain.module.rule(CHAIN_ID.RULE.JS).test(import_shared.JS_REGEX);
99
- rule.test(import_shared.TS_REGEX).use(CHAIN_ID.USE.BABEL).loader(require.resolve("babel-loader")).options(babelLoaderOptions).end().use(CHAIN_ID.USE.TS).loader(require.resolve("ts-loader")).options(tsLoaderOptions);
99
+ rule.test(import_shared.TS_REGEX).use(CHAIN_ID.USE.BABEL).loader(require.resolve("babel-loader")).options({
100
+ ...babelLoaderOptions,
101
+ // fix repeatedly insert babel plugin in some boundary cases
102
+ plugins: [
103
+ ...babelLoaderOptions.plugins || []
104
+ ],
105
+ presets: [
106
+ ...babelLoaderOptions.presets || []
107
+ ]
108
+ }).end().use(CHAIN_ID.USE.TS).loader(require.resolve("ts-loader")).options(tsLoaderOptions);
100
109
  });
101
110
  }
102
111
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@modern-js/uni-builder",
3
- "version": "0.0.0-nightly-20240205170627",
3
+ "version": "0.0.0-nightly-20240207170628",
4
4
  "description": "Unified builder for Modern.js",
5
5
  "repository": {
6
6
  "type": "git",
@@ -64,9 +64,9 @@
64
64
  "webpack": "^5.89.0",
65
65
  "webpack-manifest-plugin": "5.0.0",
66
66
  "webpack-subresource-integrity": "5.1.0",
67
- "@modern-js/utils": "0.0.0-nightly-20240205170627",
68
- "@modern-js/server": "0.0.0-nightly-20240205170627",
69
- "@modern-js/prod-server": "0.0.0-nightly-20240205170627"
67
+ "@modern-js/utils": "0.0.0-nightly-20240207170628",
68
+ "@modern-js/server": "0.0.0-nightly-20240207170628",
69
+ "@modern-js/prod-server": "0.0.0-nightly-20240207170628"
70
70
  },
71
71
  "devDependencies": {
72
72
  "@rsbuild/plugin-swc": "0.3.7",
@@ -74,9 +74,9 @@
74
74
  "react": "^18.2.0",
75
75
  "react-dom": "^18.2.0",
76
76
  "typescript": "^5.3.0",
77
- "@modern-js/builder-plugin-node-polyfill": "0.0.0-nightly-20240205170627",
78
- "@scripts/build": "0.0.0-nightly-20240205170627",
79
- "@scripts/vitest-config": "0.0.0-nightly-20240205170627"
77
+ "@modern-js/builder-plugin-node-polyfill": "0.0.0-nightly-20240207170628",
78
+ "@scripts/build": "0.0.0-nightly-20240207170628",
79
+ "@scripts/vitest-config": "0.0.0-nightly-20240207170628"
80
80
  },
81
81
  "publishConfig": {
82
82
  "access": "public",