@shuvi/toolpack 2.0.0-dev.19 → 2.0.0-dev.21

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.
@@ -4,6 +4,7 @@ export interface CompilerOptions {
4
4
  useDefineForClassFields?: boolean;
5
5
  reactRemoveProperties?: boolean;
6
6
  jsxImportSource?: string;
7
+ jscTarget?: string;
7
8
  emotion?: boolean | {
8
9
  sourceMap?: boolean;
9
10
  autoLabel?: 'dev-only' | 'always' | 'never';
@@ -153,7 +153,7 @@ function getLoaderSWCOptions({ filename, development, isServer, minify, isPageFi
153
153
  }
154
154
  else {
155
155
  // Matches default @babel/preset-env behavior
156
- baseOptions.jsc.target = 'es5';
156
+ baseOptions.jsc.target = (compiler === null || compiler === void 0 ? void 0 : compiler.jscTarget) || 'es5';
157
157
  if (supportedBrowsers && supportedBrowsers.length > 0) {
158
158
  baseOptions.env = {
159
159
  targets: supportedBrowsers
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shuvi/toolpack",
3
- "version": "2.0.0-dev.19",
3
+ "version": "2.0.0-dev.21",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/shuvijs/shuvi.git",
@@ -36,9 +36,9 @@
36
36
  "@rspack/cli": "^1.4.2",
37
37
  "@rspack/core": "^1.4.2",
38
38
  "@rspack/plugin-html": "^0.5.8",
39
- "@shuvi/compiler": "2.0.0-dev.19",
40
- "@shuvi/shared": "2.0.0-dev.19",
41
- "@shuvi/utils": "2.0.0-dev.19",
39
+ "@shuvi/compiler": "2.0.0-dev.21",
40
+ "@shuvi/shared": "2.0.0-dev.21",
41
+ "@shuvi/utils": "2.0.0-dev.21",
42
42
  "@swc/helpers": "0.4.3",
43
43
  "babel-loader": "8.2.2",
44
44
  "babel-plugin-syntax-jsx": "6.18.0",