akfun 5.2.6 → 5.2.8

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "akfun",
3
- "version": "5.2.6",
3
+ "version": "5.2.8",
4
4
  "description": "前端脚手架:支持Vue技术栈和react技术栈",
5
5
  "keywords": [
6
6
  "前端工程",
@@ -58,9 +58,9 @@
58
58
  "@babel/plugin-proposal-export-namespace-from": "^7.16.7",
59
59
  "@babel/plugin-proposal-function-sent": "^7.16.7",
60
60
  "@babel/plugin-proposal-json-strings": "^7.16.7",
61
- "@babel/plugin-proposal-nullish-coalescing-operator": "^7.16.7",
62
61
  "@babel/plugin-proposal-numeric-separator": "^7.16.7",
63
- "@babel/plugin-proposal-optional-chaining": "^7.16.7",
62
+ "@babel/plugin-transform-nullish-coalescing-operator": "^7.23.0",
63
+ "@babel/plugin-transform-optional-chaining": "^7.23.0",
64
64
  "@babel/plugin-proposal-throw-expressions": "^7.16.7",
65
65
  "@babel/plugin-syntax-dynamic-import": "^7.8.3",
66
66
  "@babel/plugin-syntax-import-meta": "^7.10.4",
@@ -1,10 +1,11 @@
1
1
  module.exports = {
2
+ extensions: ['.js', '.jsx', '.ts', '.tsx'],
2
3
  presets: [
3
4
  [
4
5
  '@babel/preset-env',
5
6
  {
6
7
  loose: true,
7
- modules: false // 是否启用将 ES6 模块语法转换为其他模块类型的功能,当前设置为 false,以便 webpack 进行 tree shaking。
8
+ modules: false, // 是否启用将ES6模块语法转换为其他模块类型的功能,当前设置为false,以便webpack进行tree shaking。
8
9
  /*
9
10
  备注:后续升级babel版本时,再启用此配置
10
11
  useBuiltIns: 'usage', // 按需引入 polyfill,替代 @babel/polyfill
@@ -27,7 +28,7 @@ module.exports = {
27
28
  '@babel/plugin-syntax-import-meta',
28
29
  ['@babel/plugin-proposal-class-properties', { loose: true }],
29
30
  '@babel/plugin-proposal-json-strings',
30
- '@babel/plugin-proposal-optional-chaining', // 支持可选链操作符 ?.
31
- '@babel/plugin-proposal-nullish-coalescing-operator' // 支持空值合并操作符 ??
31
+ '@babel/plugin-transform-optional-chaining', // 支持可选链操作符 ?.
32
+ '@babel/plugin-transform-nullish-coalescing-operator' // 支持空值合并操作符 ??
32
33
  ]
33
34
  };