unify-external-plugin-platform 0.0.3-73 → 0.0.3-75
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/babel.config.js +1 -7
- package/dist/external-plugin.common.js +5374 -7127
- package/dist/external-plugin.css +1 -1
- package/dist/external-plugin.umd.js +5373 -7127
- package/dist/external-plugin.umd.min.js +3 -3
- package/package.json +1 -1
- package/tsconfig.json +1 -4
- package/vue.config.js +0 -34
package/package.json
CHANGED
package/tsconfig.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"compilerOptions": {
|
|
3
|
-
"target": "
|
|
3
|
+
"target": "esnext",
|
|
4
4
|
"module": "esnext",
|
|
5
5
|
"strict": true,
|
|
6
6
|
"noImplicitAny": false,
|
|
@@ -33,9 +33,6 @@
|
|
|
33
33
|
"src/**/*.ts",
|
|
34
34
|
"src/**/*.tsx",
|
|
35
35
|
"src/**/*.vue",
|
|
36
|
-
"packages/**/*.ts",
|
|
37
|
-
"packages/**/*.tsx",
|
|
38
|
-
"packages/**/*.vue",
|
|
39
36
|
"tests/**/*.ts",
|
|
40
37
|
"tests/**/*.tsx"
|
|
41
38
|
],
|
package/vue.config.js
CHANGED
|
@@ -5,38 +5,4 @@
|
|
|
5
5
|
*/
|
|
6
6
|
module.exports = {
|
|
7
7
|
productionSourceMap: false,
|
|
8
|
-
configureWebpack: {
|
|
9
|
-
output: {
|
|
10
|
-
libraryExport: 'default'
|
|
11
|
-
}
|
|
12
|
-
},
|
|
13
|
-
chainWebpack: config => {
|
|
14
|
-
// 确保打包后的代码兼容 ES5
|
|
15
|
-
// 处理 .js 文件
|
|
16
|
-
config.module
|
|
17
|
-
.rule('js')
|
|
18
|
-
.include
|
|
19
|
-
.add(/packages/)
|
|
20
|
-
.add(/src/)
|
|
21
|
-
.end()
|
|
22
|
-
.use('babel-loader')
|
|
23
|
-
.tap(options => {
|
|
24
|
-
return options;
|
|
25
|
-
});
|
|
26
|
-
|
|
27
|
-
// 确保 .vue 文件中的 script 也被 babel 处理
|
|
28
|
-
config.module
|
|
29
|
-
.rule('vue')
|
|
30
|
-
.use('vue-loader')
|
|
31
|
-
.tap(options => {
|
|
32
|
-
// 确保 Vue loader 使用 babel 处理 JS
|
|
33
|
-
return options;
|
|
34
|
-
});
|
|
35
|
-
},
|
|
36
|
-
// 确保转译 node_modules 中的依赖和 packages 目录
|
|
37
|
-
transpileDependencies: [
|
|
38
|
-
/packages/
|
|
39
|
-
],
|
|
40
|
-
// 确保 babel 处理所有依赖
|
|
41
|
-
parallel: false
|
|
42
8
|
}
|