@umijs/babel-preset-umi 4.0.70 → 4.0.71

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/index.d.ts CHANGED
@@ -11,6 +11,7 @@ interface IOpts {
11
11
  };
12
12
  classPropertiesLoose: any;
13
13
  pluginStyledComponents: any;
14
+ pluginDecorators: any;
14
15
  }
15
16
  declare const _default: (_context: any, opts: IOpts) => {
16
17
  presets: (false | any[])[];
package/dist/index.js CHANGED
@@ -93,9 +93,12 @@ var src_default = (_context, opts) => {
93
93
  // TC39 Proposals
94
94
  // class-static-block
95
95
  // decorators
96
- [
96
+ opts.pluginDecorators !== false && [
97
97
  require.resolve("@umijs/bundler-utils/compiled/babel/plugin-proposal-decorators"),
98
- { legacy: true }
98
+ {
99
+ legacy: true,
100
+ ...opts.pluginDecorators
101
+ }
99
102
  ],
100
103
  // Enable loose mode to use assignment instead of defineProperty
101
104
  // Note:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umijs/babel-preset-umi",
3
- "version": "4.0.70",
3
+ "version": "4.0.71",
4
4
  "description": "Official babel preset for umi.",
5
5
  "homepage": "https://github.com/umijs/umi/tree/master/packages/babel-preset-umi#readme",
6
6
  "bugs": "https://github.com/umijs/umi/issues",
@@ -19,8 +19,8 @@
19
19
  "@bloomberg/record-tuple-polyfill": "0.0.4",
20
20
  "babel-plugin-styled-components": "2.1.1",
21
21
  "core-js": "3.28.0",
22
- "@umijs/bundler-utils": "4.0.70",
23
- "@umijs/utils": "4.0.70"
22
+ "@umijs/bundler-utils": "4.0.71",
23
+ "@umijs/utils": "4.0.71"
24
24
  },
25
25
  "publishConfig": {
26
26
  "access": "public"