unify-external-plugin-platform 0.0.3-73 → 0.0.3-76

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": "unify-external-plugin-platform",
3
- "version": "0.0.3-73",
3
+ "version": "0.0.3-76",
4
4
  "description": "统一对外插件平台",
5
5
  "main": "./dist/external-plugin.umd.min.js",
6
6
  "author": "Young",
package/tsconfig.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "compilerOptions": {
3
- "target": "es5",
3
+ "target": "esnext",
4
4
  "module": "esnext",
5
5
  "strict": true,
6
6
  "noImplicitAny": false,
@@ -20,6 +20,9 @@
20
20
  "paths": {
21
21
  "@/*": [
22
22
  "src/*"
23
+ ],
24
+ "@packages/*": [
25
+ "packages/*"
23
26
  ]
24
27
  },
25
28
  "lib": [
@@ -34,8 +37,6 @@
34
37
  "src/**/*.tsx",
35
38
  "src/**/*.vue",
36
39
  "packages/**/*.ts",
37
- "packages/**/*.tsx",
38
- "packages/**/*.vue",
39
40
  "tests/**/*.ts",
40
41
  "tests/**/*.tsx"
41
42
  ],
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
  }