emacroh5lib 1.0.2 → 1.0.3

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/tsconfig.json CHANGED
@@ -10,7 +10,7 @@
10
10
  "declarationDir": "./dist/types/", // 声明文件打包的位置
11
11
  "declarationMap": false, // 是否生成声明文件map文件(便于调试)
12
12
  "moduleResolution": "node",
13
- "module": "esnext",
13
+ "module": "commonjs",
14
14
  "target": "es5", // 转化成的目标语言
15
15
  "baseUrl": "./",
16
16
  "strict": true,
package/webpack.config.js CHANGED
@@ -35,6 +35,9 @@ const config = {
35
35
  open: true,
36
36
  host: "localhost",
37
37
  },
38
+ externals: {
39
+ './cptable': 'var cptable'
40
+ },
38
41
  plugins: [
39
42
  // new HtmlWebpackPlugin({
40
43
  // template: "index.html",
@@ -93,6 +96,10 @@ const config = {
93
96
  alias: {
94
97
  '@': resolve('src')
95
98
  },
99
+ fallback: {
100
+ crypto: false,
101
+ fs: false
102
+ },
96
103
  extensions: ['.js', '.jsx', '.ts', '.tsx', '.vue', '.json'],
97
104
  }
98
105
  };