app-form-view 0.0.0 → 0.0.1

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": "app-form-view",
3
- "version": "0.0.0",
3
+ "version": "0.0.1",
4
4
  "description": "vue表单组件库",
5
5
  "main": "dist/index.js",
6
6
  "publishConfig": {
@@ -13,7 +13,7 @@ async function makeList(dirpath, list) {
13
13
  }
14
14
  makeList('src', list)
15
15
  import filesize from "rollup-plugin-filesize";
16
- import { minify } from "uglify-es";
16
+ import terser from '@rollup/plugin-terser';
17
17
  import baseConfig from "./rollup.config.base.js";
18
18
  import { name, version } from "../package.json";
19
19
  // banner
@@ -21,23 +21,34 @@ const banner =
21
21
  `${"/*!\n" + " * "}${name}.js v${version}\n` +
22
22
  " * Released under the MIT License.\n" +
23
23
  " */";
24
+ const external = ['vue', 'element-ui', 'util', 'vant', 'vuex'];
25
+ const globals = {
26
+ 'vuex': 'Vuex',
27
+ 'vue': 'Vue',
28
+ 'vant': 'vant',
29
+ 'element-ui': 'ELEMENT',
30
+ 'util': 'util'
31
+ };
24
32
  // 支持输出 []
25
33
  baseConfig.input = list
26
34
  export default [
27
35
  // .js, .cjs.js, .esm.js
28
36
  {
29
37
  ...baseConfig,
38
+ external,
30
39
  output: [
31
40
  // umd development version with sourcemap
32
41
  {
33
42
  dir: `dist`,
34
43
  name,
35
44
  banner,
36
- assetFileNames: 'style.css'
45
+ assetFileNames: 'style.css',
46
+ format: 'umd',
47
+ globals
37
48
  },
38
49
 
39
50
  ],
40
- plugins: [...baseConfig.plugins, minify(), filesize()],
51
+ plugins: [...baseConfig.plugins, terser(), filesize()],
41
52
  }
42
53
  ];
43
54