mooho-base-admin-plus 0.1.19 → 0.1.22

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/vite.config.js +6 -5
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mooho-base-admin-plus",
3
3
  "description": "MOOHO basic framework for admin by Vue3",
4
- "version": "0.1.19",
4
+ "version": "0.1.22",
5
5
  "author": "jinyifan <jinyifan@mooho.com.cn>",
6
6
  "dotnetVersion": "1.3.97",
7
7
  "license": "MIT",
package/vite.config.js CHANGED
@@ -6,11 +6,11 @@ import Setting from './test/setting.env';
6
6
  // https://vitejs.dev/config/
7
7
  export default defineConfig({
8
8
  plugins: [vue()],
9
- base: Setting.publicPath,
9
+ target: 'es2015',
10
10
  build: {
11
+ sourcemap: false, // 输出.map文件
11
12
  outDir: Setting.outputDir,
12
13
  assetsDir: Setting.assetsDir,
13
- minify: 'esbuild',
14
14
  lib: {
15
15
  entry: resolve(__dirname, './src/index.js'),
16
16
  name: 'moohoBaseAdminPlus'
@@ -19,6 +19,7 @@ export default defineConfig({
19
19
  context: 'globalThis',
20
20
  //preserveEntrySignatures: 'strict',
21
21
  external: ['vue', 'view-ui-plus'],
22
+ minify: 'esbuild',
22
23
  output: [
23
24
  {
24
25
  format: 'umd',
@@ -27,9 +28,9 @@ export default defineConfig({
27
28
  entryFileNames: 'mooho-base-admin-plus.min.js',
28
29
  chunkFileNames: '[name].js',
29
30
  assetFileNames: '[name].[ext]',
30
- namespaceToStringTag: true,
31
- inlineDynamicImports: false,
32
- manualChunks: undefined,
31
+ // namespaceToStringTag: true,
32
+ // inlineDynamicImports: false,
33
+ // manualChunks: undefined,
33
34
  globals: { vue: 'Vue', 'view-ui-plus': 'viewUiPlus' }
34
35
  }
35
36
  ]