@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 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:`vant-go`,sideEffects:t?`vant-go/style.css`:void 0}}}}exports.VantGoResolver=e;
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
@@ -6,8 +6,8 @@ function e(e = {}) {
6
6
  resolve(e) {
7
7
  if (e.startsWith(n)) return {
8
8
  name: e,
9
- from: "vant-go",
10
- sideEffects: t ? "vant-go/style.css" : void 0
9
+ from: "@gindow/vant-go",
10
+ sideEffects: t ? "@gindow/vant-go/style.css" : void 0
11
11
  };
12
12
  }
13
13
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gindow/vant-go",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "基于 Vant 的移动端扩展组件库",
5
5
  "type": "module",
6
6
  "license": "MIT",
package/src/resolver.ts CHANGED
@@ -1,9 +1,9 @@
1
1
  export interface VantGoResolverOptions {
2
2
  /**
3
3
  * 是否自动导入 vant-go 的聚合样式文件。
4
- * 默认 true:每次解析到 Vax* 组件时附带 `vant-go/style.css` 副作用导入
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
  }