vue-aurora-x-resolver 1.0.0 → 1.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/dist/index.d.mts CHANGED
@@ -25,12 +25,10 @@ interface AuroraXResolverOptions {
25
25
  declare function AuroraXResolver(options?: AuroraXResolverOptions): (name: string) => {
26
26
  name: string;
27
27
  from: string;
28
- sideEffects: string;
29
28
  };
30
29
  declare function AuroraXNoPrefix(options?: Omit<AuroraXResolverOptions, 'prefix'>): (name: string) => {
31
30
  name: string;
32
31
  from: string;
33
- sideEffects: string;
34
32
  };
35
33
 
36
34
  export { AuroraXNoPrefix, AuroraXResolver, type AuroraXResolverOptions };
package/dist/index.d.ts CHANGED
@@ -25,12 +25,10 @@ interface AuroraXResolverOptions {
25
25
  declare function AuroraXResolver(options?: AuroraXResolverOptions): (name: string) => {
26
26
  name: string;
27
27
  from: string;
28
- sideEffects: string;
29
28
  };
30
29
  declare function AuroraXNoPrefix(options?: Omit<AuroraXResolverOptions, 'prefix'>): (name: string) => {
31
30
  name: string;
32
31
  from: string;
33
- sideEffects: string;
34
32
  };
35
33
 
36
34
  export { AuroraXNoPrefix, AuroraXResolver, type AuroraXResolverOptions };
package/dist/index.js CHANGED
@@ -37,7 +37,7 @@ function isAuroraXComponent(name) {
37
37
  function AuroraXResolver(options = {}) {
38
38
  const {
39
39
  prefix = "Au",
40
- packageName = "aurora-x",
40
+ packageName = "vue-aurora-x",
41
41
  exclude = []
42
42
  } = options;
43
43
  return (name) => {
@@ -50,15 +50,13 @@ function AuroraXResolver(options = {}) {
50
50
  // 返回组件信息
51
51
  name: `Au${componentName}`,
52
52
  // 从包中导入带前缀的组件
53
- from: packageName,
54
- sideEffects: `${packageName}/dist/es/${componentName}/index.css`
55
- // 自动导入对应的CSS
53
+ from: packageName
56
54
  };
57
55
  };
58
56
  }
59
57
  function AuroraXNoPrefix(options = {}) {
60
58
  const {
61
- packageName = "aurora-x",
59
+ packageName = "vue-aurora-x",
62
60
  exclude = []
63
61
  } = options;
64
62
  return (name) => {
@@ -66,8 +64,7 @@ function AuroraXNoPrefix(options = {}) {
66
64
  return;
67
65
  return {
68
66
  name,
69
- from: packageName,
70
- sideEffects: `${packageName}/dist/es/${name}/index.css`
67
+ from: packageName
71
68
  };
72
69
  };
73
70
  }
package/dist/index.mjs CHANGED
@@ -13,7 +13,7 @@ function isAuroraXComponent(name) {
13
13
  function AuroraXResolver(options = {}) {
14
14
  const {
15
15
  prefix = "Au",
16
- packageName = "aurora-x",
16
+ packageName = "vue-aurora-x",
17
17
  exclude = []
18
18
  } = options;
19
19
  return (name) => {
@@ -26,15 +26,13 @@ function AuroraXResolver(options = {}) {
26
26
  // 返回组件信息
27
27
  name: `Au${componentName}`,
28
28
  // 从包中导入带前缀的组件
29
- from: packageName,
30
- sideEffects: `${packageName}/dist/es/${componentName}/index.css`
31
- // 自动导入对应的CSS
29
+ from: packageName
32
30
  };
33
31
  };
34
32
  }
35
33
  function AuroraXNoPrefix(options = {}) {
36
34
  const {
37
- packageName = "aurora-x",
35
+ packageName = "vue-aurora-x",
38
36
  exclude = []
39
37
  } = options;
40
38
  return (name) => {
@@ -42,8 +40,7 @@ function AuroraXNoPrefix(options = {}) {
42
40
  return;
43
41
  return {
44
42
  name,
45
- from: packageName,
46
- sideEffects: `${packageName}/dist/es/${name}/index.css`
43
+ from: packageName
47
44
  };
48
45
  };
49
46
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue-aurora-x-resolver",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dist/index.d.ts",
@@ -9,7 +9,7 @@
9
9
  "build": "tsup src/index.ts --format cjs,esm --dts"
10
10
  },
11
11
  "peerDependencies": {
12
- "vue-aurora-x": "^1.0.0"
12
+ "vue-aurora-x": "^1.0.6"
13
13
  },
14
14
  "devDependencies": {
15
15
  "typescript": "~5.8.2",