akfun 1.6.7 → 1.6.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": "1.6.7",
3
+ "version": "1.6.8",
4
4
  "description": "前端脚手架:支持Vue技术栈和react技术栈",
5
5
  "keywords": [
6
6
  "前端工程",
package/src/build2esm.js CHANGED
@@ -34,7 +34,7 @@ module.exports = function (fileName, akfunConfig, _consoleTag) {
34
34
  // 参数中的config配置优先级最高
35
35
  config = deepMergeConfig(defaultConfig, akfunConfig);
36
36
  }
37
- const spinner = ora(`${consoleTag}开启esm lib库的构建能力...`).start();
37
+ const spinner = ora(`${consoleTag}开启esm模块构建能力...`).start();
38
38
  const curRollupConfig = rollupConfig(fileName, config); // 默认配置
39
39
  const build2esm = config.build2esm; // 用户的项目配置
40
40
  if (build2esm && build2esm.input) {
@@ -37,7 +37,9 @@ module.exports = (akfunConfig) => {
37
37
  },
38
38
  devtool: curEnvConfig.productionSourceMap ? '#source-map' : false, // '#source-map': 源码,false:压缩代码
39
39
  externals: config.webpack.ignoreNodeModules
40
- ? [nodeExternals()].concat(config.webpack.externals)
40
+ ? [nodeExternals({
41
+ allowList: config.webpack.allowList ? config.webpack.allowList : []
42
+ })].concat(config.webpack.externals)
41
43
  : config.webpack.externals,
42
44
  plugins: [
43
45
  new webpack.DefinePlugin({
@@ -56,7 +56,9 @@ module.exports = (akfunConfig) => {
56
56
  })
57
57
  },
58
58
  externals: config.webpack.ignoreNodeModules
59
- ? [nodeExternals()].concat(config.webpack.externals)
59
+ ? [nodeExternals({
60
+ allowList: config.webpack.allowList ? config.webpack.allowList : []
61
+ })].concat(config.webpack.externals)
60
62
  : config.webpack.externals,
61
63
  // devtool: '#cheap-module-eval-source-map', // 本地开发环境中的取值
62
64
  devtool: curEnvConfig.productionSourceMap ? '#source-map' : false, // 线上开发环境中的取值