@tdh-ui/unplugin-resolver 1.0.4 → 1.0.5

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.cjs CHANGED
@@ -102,14 +102,14 @@ function getBizSideEffects(dirName, options) {
102
102
  }
103
103
  function resolveBizComponent(name, options) {
104
104
  if (options.exclude && name.match(options.exclude)) return;
105
- if (!/^El[A-Z]/.test(name)) return;
105
+ if (!/^Tdh[A-Z]/.test(name)) return;
106
106
  if (/^ElIcon.+/.test(name)) {
107
107
  return {
108
108
  name: name.replace(/^ElIcon/, ""),
109
109
  from: "@element-plus/icons-vue"
110
110
  };
111
111
  }
112
- const partialName = kebabCase(name.slice(2));
112
+ const partialName = kebabCase(name.slice(3));
113
113
  const { ssr } = options;
114
114
  return {
115
115
  name,
@@ -117,7 +117,7 @@ function resolveBizComponent(name, options) {
117
117
  sideEffects: getBizSideEffects(partialName, options)
118
118
  };
119
119
  }
120
- const noStylesBizComponents = ["ElAutoResizer"];
120
+ const noStylesBizComponents = [];
121
121
  function TdhBizUIResolver(options = {}) {
122
122
  let optionsResolved;
123
123
  async function resolveOptions() {
package/dist/index.mjs CHANGED
@@ -100,14 +100,14 @@ function getBizSideEffects(dirName, options) {
100
100
  }
101
101
  function resolveBizComponent(name, options) {
102
102
  if (options.exclude && name.match(options.exclude)) return;
103
- if (!/^El[A-Z]/.test(name)) return;
103
+ if (!/^Tdh[A-Z]/.test(name)) return;
104
104
  if (/^ElIcon.+/.test(name)) {
105
105
  return {
106
106
  name: name.replace(/^ElIcon/, ""),
107
107
  from: "@element-plus/icons-vue"
108
108
  };
109
109
  }
110
- const partialName = kebabCase(name.slice(2));
110
+ const partialName = kebabCase(name.slice(3));
111
111
  const { ssr } = options;
112
112
  return {
113
113
  name,
@@ -115,7 +115,7 @@ function resolveBizComponent(name, options) {
115
115
  sideEffects: getBizSideEffects(partialName, options)
116
116
  };
117
117
  }
118
- const noStylesBizComponents = ["ElAutoResizer"];
118
+ const noStylesBizComponents = [];
119
119
  function TdhBizUIResolver(options = {}) {
120
120
  let optionsResolved;
121
121
  async function resolveOptions() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tdh-ui/unplugin-resolver",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "license": "MIT",
5
5
  "files": [
6
6
  "dist"