@gindow/vant-go 1.0.0 → 1.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/dist/resolver.cjs +1 -1
- package/dist/resolver.mjs +2 -2
- package/package.json +1 -1
- package/src/resolver.ts +4 -4
package/dist/resolver.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});function e(e={}){let{importStyle:t=!0,prefix:n=`Vax`}=e;return{type:`component`,resolve(e){if(e.startsWith(n))return{name:e,from
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});function e(e={}){let{importStyle:t=!0,prefix:n=`Vax`}=e;return{type:`component`,resolve(e){if(e.startsWith(n))return{name:e,from:`@gindow/vant-go`,sideEffects:t?`@gindow/vant-go/style.css`:void 0}}}}exports.VantGoResolver=e;
|
package/dist/resolver.mjs
CHANGED
package/package.json
CHANGED
package/src/resolver.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export interface VantGoResolverOptions {
|
|
2
2
|
/**
|
|
3
3
|
* 是否自动导入 vant-go 的聚合样式文件。
|
|
4
|
-
* 默认 true:每次解析到 Vax* 组件时附带
|
|
4
|
+
* 默认 true:每次解析到 Vax* 组件时附带 `@gindow/vant-go/style.css` 副作用导入
|
|
5
5
|
* (unplugin-vue-components 会去重,不会重复打包)。
|
|
6
|
-
* 设为 false 时需在应用入口手动 `import 'vant-go/style.css'`。
|
|
6
|
+
* 设为 false 时需在应用入口手动 `import '@gindow/vant-go/style.css'`。
|
|
7
7
|
*/
|
|
8
8
|
importStyle?: boolean
|
|
9
9
|
/** 自定义前缀,默认 'Vax' */
|
|
@@ -18,8 +18,8 @@ export function VantGoResolver(options: VantGoResolverOptions = {}) {
|
|
|
18
18
|
if (!name.startsWith(prefix)) return
|
|
19
19
|
return {
|
|
20
20
|
name,
|
|
21
|
-
from: 'vant-go',
|
|
22
|
-
sideEffects: importStyle ? 'vant-go/style.css' : undefined,
|
|
21
|
+
from: '@gindow/vant-go',
|
|
22
|
+
sideEffects: importStyle ? '@gindow/vant-go/style.css' : undefined,
|
|
23
23
|
}
|
|
24
24
|
},
|
|
25
25
|
}
|