unplugin-isolated-decl 0.10.0 → 0.10.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/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-DPQU5TkD.cjs → src-BlDD5o16.cjs} +6 -6
- package/dist/{src-BG0S9gFu.js → src-hAmGUUg5.js} +6 -6
- package/dist/vite.cjs +1 -1
- package/dist/vite.js +1 -1
- package/package.json +1 -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
|
@@ -216,13 +216,13 @@ else {
|
|
|
216
216
|
const { input } = inputOptions;
|
|
217
217
|
const { inputBase, entryMap } = resolveEntry(input, options.inputBase);
|
|
218
218
|
debug$1("[rollup] input base:", inputBase);
|
|
219
|
-
|
|
219
|
+
const { entryFileNames = "[name].js", dir: outDir } = outputOptions;
|
|
220
220
|
if (typeof entryFileNames !== "string") return this.error("entryFileNames must be a string");
|
|
221
|
-
if (options.extraOutdir) entryFileNames = node_path.default.join(options.extraOutdir, entryFileNames);
|
|
222
221
|
for (const [srcFilename, { s, imports, map, ext }] of Object.entries(outputFiles)) {
|
|
223
|
-
|
|
222
|
+
let emitName = rewriteImports(s, options, imports, entryMap, inputBase, entryFileNames, srcFilename);
|
|
224
223
|
let source = s.toString();
|
|
225
224
|
if (options.patchCjsDefaultExport && emitName.endsWith(".d.cts")) source = patchCjsDefaultExport(source);
|
|
225
|
+
if (options.extraOutdir) emitName = node_path.default.join(options.extraOutdir || "", emitName);
|
|
226
226
|
debug$1("[rollup] emit dts file:", emitName);
|
|
227
227
|
if (options.sourceMap && map && outDir) {
|
|
228
228
|
source = require_transformer.appendMapUrl(source, emitName);
|
|
@@ -251,12 +251,12 @@ else {
|
|
|
251
251
|
]);
|
|
252
252
|
output.entryFilename = "[entryName].[ext]";
|
|
253
253
|
output.entryFilename = output.entryFilename.replace("[ext]", extFormatMap.get(output.format || "esm") || "js");
|
|
254
|
-
|
|
255
|
-
if (options.extraOutdir) entryFileNames = node_path.default.join(options.extraOutdir, entryFileNames);
|
|
254
|
+
const entryFileNames = output.entryFilename;
|
|
256
255
|
for (const [srcFilename, { s, imports, map, ext }] of Object.entries(outputFiles)) {
|
|
257
|
-
|
|
256
|
+
let emitName = rewriteImports(s, options, imports, entryMap, inputBase, entryFileNames, srcFilename);
|
|
258
257
|
let source = s.toString();
|
|
259
258
|
if (options.patchCjsDefaultExport && emitName.endsWith(".d.cts")) source = patchCjsDefaultExport(source);
|
|
259
|
+
if (options.extraOutdir) emitName = node_path.default.join(options.extraOutdir || "", emitName);
|
|
260
260
|
debug$1("[farm] emit dts file:", emitName);
|
|
261
261
|
const outDir = output.path;
|
|
262
262
|
if (options.sourceMap && map && outDir) {
|
|
@@ -215,13 +215,13 @@ else {
|
|
|
215
215
|
const { input } = inputOptions;
|
|
216
216
|
const { inputBase, entryMap } = resolveEntry(input, options.inputBase);
|
|
217
217
|
debug("[rollup] input base:", inputBase);
|
|
218
|
-
|
|
218
|
+
const { entryFileNames = "[name].js", dir: outDir } = outputOptions;
|
|
219
219
|
if (typeof entryFileNames !== "string") return this.error("entryFileNames must be a string");
|
|
220
|
-
if (options.extraOutdir) entryFileNames = path.join(options.extraOutdir, entryFileNames);
|
|
221
220
|
for (const [srcFilename, { s, imports, map, ext }] of Object.entries(outputFiles)) {
|
|
222
|
-
|
|
221
|
+
let emitName = rewriteImports(s, options, imports, entryMap, inputBase, entryFileNames, srcFilename);
|
|
223
222
|
let source = s.toString();
|
|
224
223
|
if (options.patchCjsDefaultExport && emitName.endsWith(".d.cts")) source = patchCjsDefaultExport(source);
|
|
224
|
+
if (options.extraOutdir) emitName = path.join(options.extraOutdir || "", emitName);
|
|
225
225
|
debug("[rollup] emit dts file:", emitName);
|
|
226
226
|
if (options.sourceMap && map && outDir) {
|
|
227
227
|
source = appendMapUrl(source, emitName);
|
|
@@ -250,12 +250,12 @@ else {
|
|
|
250
250
|
]);
|
|
251
251
|
output.entryFilename = "[entryName].[ext]";
|
|
252
252
|
output.entryFilename = output.entryFilename.replace("[ext]", extFormatMap.get(output.format || "esm") || "js");
|
|
253
|
-
|
|
254
|
-
if (options.extraOutdir) entryFileNames = path.join(options.extraOutdir, entryFileNames);
|
|
253
|
+
const entryFileNames = output.entryFilename;
|
|
255
254
|
for (const [srcFilename, { s, imports, map, ext }] of Object.entries(outputFiles)) {
|
|
256
|
-
|
|
255
|
+
let emitName = rewriteImports(s, options, imports, entryMap, inputBase, entryFileNames, srcFilename);
|
|
257
256
|
let source = s.toString();
|
|
258
257
|
if (options.patchCjsDefaultExport && emitName.endsWith(".d.cts")) source = patchCjsDefaultExport(source);
|
|
258
|
+
if (options.extraOutdir) emitName = path.join(options.extraOutdir || "", emitName);
|
|
259
259
|
debug("[farm] emit dts file:", emitName);
|
|
260
260
|
const outDir = output.path;
|
|
261
261
|
if (options.sourceMap && map && outDir) {
|
package/dist/vite.cjs
CHANGED
package/dist/vite.js
CHANGED