unplugin-isolated-decl 0.7.1 → 0.7.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/esbuild.cjs +1 -1
- package/dist/esbuild.js +1 -1
- package/dist/farm.cjs +1 -1
- package/dist/farm.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/rolldown.cjs +1 -1
- package/dist/rolldown.js +1 -1
- package/dist/rollup.cjs +1 -1
- package/dist/rollup.js +1 -1
- package/dist/{src-lcwrBdQD.cjs → src-CK3yN-QH.cjs} +2 -2
- package/dist/{src-BatylriB.js → src-CrmBEB0d.js} +2 -2
- package/dist/vite.cjs +1 -1
- package/dist/vite.js +1 -1
- package/package.json +2 -1
package/dist/esbuild.cjs
CHANGED
package/dist/esbuild.js
CHANGED
package/dist/farm.cjs
CHANGED
package/dist/farm.js
CHANGED
package/dist/index.cjs
CHANGED
package/dist/index.js
CHANGED
package/dist/rolldown.cjs
CHANGED
package/dist/rolldown.js
CHANGED
package/dist/rollup.cjs
CHANGED
package/dist/rollup.js
CHANGED
|
@@ -158,7 +158,7 @@ else {
|
|
|
158
158
|
const resolved = await resolve(context, i.source.value, id);
|
|
159
159
|
if (!resolved || resolved.external) continue;
|
|
160
160
|
if (resolved.id.endsWith(".ts") || resolved.id.endsWith(".tsx")) {
|
|
161
|
-
i.source.value = `${i.source.value}.js`;
|
|
161
|
+
i.source.value = `${i.source.originalValue = i.source.value}.js`;
|
|
162
162
|
s.overwrite(i.source.start + 1, i.source.end - 1, i.source.value);
|
|
163
163
|
}
|
|
164
164
|
}
|
|
@@ -182,7 +182,7 @@ else {
|
|
|
182
182
|
});
|
|
183
183
|
for (const i of typeImports) {
|
|
184
184
|
if (!i.source) continue;
|
|
185
|
-
const resolved = (await resolve(context, i.source.value, id))?.id;
|
|
185
|
+
const resolved = (await resolve(context, i.source.originalValue || i.source.value, id))?.id;
|
|
186
186
|
if (resolved && filter(resolved) && !outputFiles[stripExt(resolved)]) {
|
|
187
187
|
let source;
|
|
188
188
|
try {
|
|
@@ -134,7 +134,7 @@ else {
|
|
|
134
134
|
const resolved = await resolve(context, i.source.value, id);
|
|
135
135
|
if (!resolved || resolved.external) continue;
|
|
136
136
|
if (resolved.id.endsWith(".ts") || resolved.id.endsWith(".tsx")) {
|
|
137
|
-
i.source.value = `${i.source.value}.js`;
|
|
137
|
+
i.source.value = `${i.source.originalValue = i.source.value}.js`;
|
|
138
138
|
s.overwrite(i.source.start + 1, i.source.end - 1, i.source.value);
|
|
139
139
|
}
|
|
140
140
|
}
|
|
@@ -158,7 +158,7 @@ else {
|
|
|
158
158
|
});
|
|
159
159
|
for (const i of typeImports) {
|
|
160
160
|
if (!i.source) continue;
|
|
161
|
-
const resolved = (await resolve(context, i.source.value, id))?.id;
|
|
161
|
+
const resolved = (await resolve(context, i.source.originalValue || i.source.value, id))?.id;
|
|
162
162
|
if (resolved && filter(resolved) && !outputFiles[stripExt(resolved)]) {
|
|
163
163
|
let source;
|
|
164
164
|
try {
|
package/dist/vite.cjs
CHANGED
package/dist/vite.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "unplugin-isolated-decl",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.2",
|
|
4
4
|
"description": "A blazing-fast tool for generating isolated declarations.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"keywords": [
|
|
@@ -100,6 +100,7 @@
|
|
|
100
100
|
"@swc/core": "^1.9.2",
|
|
101
101
|
"@sxzz/eslint-config": "^4.4.1",
|
|
102
102
|
"@sxzz/prettier-config": "^2.0.2",
|
|
103
|
+
"@sxzz/test-utils": "^0.3.7",
|
|
103
104
|
"@types/debug": "^4.1.12",
|
|
104
105
|
"@types/node": "^22.9.0",
|
|
105
106
|
"bumpp": "^9.8.1",
|