akfun 5.2.11 → 5.2.12
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.
|
|
3
|
+
"version": "5.2.12",
|
|
4
4
|
"description": "前端脚手架:支持Vue技术栈和react技术栈",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"前端工程",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"author": "wibetter",
|
|
14
14
|
"license": "MIT",
|
|
15
15
|
"bin": {
|
|
16
|
-
"akfun": "
|
|
16
|
+
"akfun": "bin/akfun.js"
|
|
17
17
|
},
|
|
18
18
|
"main": "module/main.js",
|
|
19
19
|
"scripts": {
|
|
@@ -106,7 +106,10 @@ module.exports = function (curConfig, curEnvConfig) {
|
|
|
106
106
|
declarationDir: curEnvConfig.declarationDir || './dist/types'
|
|
107
107
|
})
|
|
108
108
|
: undefined,
|
|
109
|
-
babel(
|
|
109
|
+
babel({
|
|
110
|
+
extensions: ['.js', '.jsx', '.ts', '.tsx'],
|
|
111
|
+
...babelConfig,
|
|
112
|
+
}), // 备注,需要先babel()再commjs()
|
|
110
113
|
buildType === 'ts' ? undefined : jsx({ factory: 'React.createElement' }),
|
|
111
114
|
vue(),
|
|
112
115
|
commonjs({
|
|
@@ -44,9 +44,6 @@ module.exports = (_curEnvConfig, _akfunConfig, buildMode = 'build') => {
|
|
|
44
44
|
...babelConfig
|
|
45
45
|
};
|
|
46
46
|
|
|
47
|
-
// 剔除掉 babel-loader 不需要的配置
|
|
48
|
-
delete curBabelConfig.extensions;
|
|
49
|
-
|
|
50
47
|
// 判断是否有自定义 Babel plugins
|
|
51
48
|
if (isArray(curWebpackConfig.babelPlugins)) {
|
|
52
49
|
// 添加自定义babel插件
|