akfun 5.2.7 → 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,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 // 是否启用将
|
|
8
|
+
modules: false, // 是否启用将ES6模块语法转换为其他模块类型的功能,当前设置为false,以便webpack进行tree shaking。
|
|
8
9
|
/*
|
|
9
10
|
备注:后续升级babel版本时,再启用此配置
|
|
10
11
|
useBuiltIns: 'usage', // 按需引入 polyfill,替代 @babel/polyfill
|