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/.eslintcache +1 -1
- package/dist/{style.css → index.css} +1 -1
- package/dist/ui.es.js +1470 -69353
- package/dist/ui.umd.js +1 -1
- package/package.json +1 -1
- package/vite.config.js +9 -7
- package/dist/sfmap.min.js +0 -65
package/package.json
CHANGED
package/vite.config.js
CHANGED
|
@@ -22,13 +22,13 @@ export default defineConfig({
|
|
|
22
22
|
// libInjectCss(),
|
|
23
23
|
ScriptSetup(),
|
|
24
24
|
eslintPlugin(),
|
|
25
|
-
Components({
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
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: {
|