mapboxgl-tools 0.0.1 → 0.0.2

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
@@ -8,7 +8,7 @@
8
8
  "栅格",
9
9
  "瓦片"
10
10
  ],
11
- "version": "0.0.1",
11
+ "version": "0.0.2",
12
12
  "private": false,
13
13
  "type": "module",
14
14
  "author": "Wbiokr",
package/vite.config.js CHANGED
@@ -22,13 +22,13 @@ export default defineConfig({
22
22
  // libInjectCss(),
23
23
  ScriptSetup(),
24
24
  eslintPlugin(),
25
- Components({
26
- resolvers: [AntDesignVueResolver({
27
- // importStyle: 'css',
28
- importStyle: false,
29
- cjs: true
30
- })],
31
- }),
25
+ // Components({
26
+ // resolvers: [AntDesignVueResolver({
27
+ // // importStyle: 'css',
28
+ // importStyle: false,
29
+ // cjs: true
30
+ // })],
31
+ // }),
32
32
  vitePluginVueImport([
33
33
  {
34
34
  libName: 'ant-design-vue',
@@ -74,6 +74,7 @@ export default defineConfig({
74
74
  // },
75
75
  // 构建为库
76
76
  build: {
77
+ cssCodeSplit: true,
77
78
  lib: {
78
79
  // 构建为库。如果指定了 build.lib,build.cssCodeSplit 会默认为 false。
79
80
  entry: resolve(____dirname, 'packages/index.js'), // entry是必需的,因为库不能使用HTML作为入口。
@@ -87,6 +88,7 @@ export default defineConfig({
87
88
  external: ['vue'],
88
89
  output: {
89
90
  // format: 'es', // 默认es,可选 'amd' 'cjs' 'es' 'iife' 'umd' 'system'
91
+ // esModule: '',
90
92
  exports: 'named', // https://rollupjs.org/configuration-options/#output-exports
91
93
  // // 在 UMD 构建模式下为这些外部化的依赖提供一个全局变量
92
94
  globals: {