@umijs/babel-preset-umi 3.3.12 → 3.3.15

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/lib/index.d.ts CHANGED
@@ -16,6 +16,7 @@ interface SvgrOpts {
16
16
  }
17
17
  export interface IOpts {
18
18
  typescript?: boolean;
19
+ typescriptEmitDecoratorMetadata?: boolean;
19
20
  react?: object;
20
21
  debug?: boolean;
21
22
  env?: object;
package/lib/index.js CHANGED
@@ -71,7 +71,7 @@ var _default = (context, opts = {}) => {
71
71
  loose: false
72
72
  }], // https://www.npmjs.com/package/babel-plugin-transform-typescript-metadata#usage
73
73
  // should be placed before @babel/plugin-proposal-decorators.
74
- opts.typescript && [require.resolve('babel-plugin-transform-typescript-metadata')], [require('@babel/plugin-proposal-decorators').default, {
74
+ opts.typescript && opts.typescriptEmitDecoratorMetadata !== false && [require.resolve('babel-plugin-transform-typescript-metadata')], [require('@babel/plugin-proposal-decorators').default, {
75
75
  legacy: true
76
76
  }], [require('@babel/plugin-proposal-class-properties').default, {
77
77
  loose: true
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umijs/babel-preset-umi",
3
- "version": "3.3.12",
3
+ "version": "3.3.15",
4
4
  "description": "@umijs/babel-preset-umi",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -44,9 +44,10 @@
44
44
  "@babel/preset-typescript": "7.12.1",
45
45
  "@babel/runtime": "7.12.5",
46
46
  "@svgr/webpack": "4.3.3",
47
- "@umijs/babel-plugin-auto-css-modules": "3.3.12",
48
- "@umijs/babel-plugin-import-to-await-require": "3.3.12",
49
- "@umijs/babel-plugin-lock-core-js-3": "3.3.12",
47
+ "@umijs/babel-plugin-auto-css-modules": "3.3.15",
48
+ "@umijs/babel-plugin-import-to-await-require": "3.3.15",
49
+ "@umijs/babel-plugin-lock-core-js-3": "3.3.15",
50
+ "@umijs/utils": "3.3.15",
50
51
  "babel-plugin-dynamic-import-node": "2.3.3",
51
52
  "babel-plugin-import": "^1.13.1",
52
53
  "babel-plugin-named-asset-import": "0.3.7",