next-bun-compile 0.6.4 → 0.6.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/cli.js +1 -1
- package/dist/{index-rh4vdfr5.js → index-mcq5wghd.js} +9 -14
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -409,20 +409,15 @@ async function extractAssets() {
|
|
|
409
409
|
for (const [alias, target] of turbopackAliases) {
|
|
410
410
|
const aliasPath = path.join(baseDir, ".next/node_modules", alias);
|
|
411
411
|
if (fs.existsSync(aliasPath)) continue;
|
|
412
|
-
fs.mkdirSync(
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
fs.writeFileSync(
|
|
422
|
-
path.join(aliasPath, "index.js"),
|
|
423
|
-
"module.exports = require(" + JSON.stringify(target) + ");"
|
|
424
|
-
);
|
|
425
|
-
}
|
|
412
|
+
fs.mkdirSync(aliasPath, { recursive: true });
|
|
413
|
+
fs.writeFileSync(
|
|
414
|
+
path.join(aliasPath, "package.json"),
|
|
415
|
+
JSON.stringify({ name: alias, main: "index.js" })
|
|
416
|
+
);
|
|
417
|
+
fs.writeFileSync(
|
|
418
|
+
path.join(aliasPath, "index.js"),
|
|
419
|
+
"module.exports = require(" + JSON.stringify(target) + ");"
|
|
420
|
+
);
|
|
426
421
|
}
|
|
427
422
|
if (n > 0) console.log(\`Extracted \${n} assets\`);
|
|
428
423
|
}
|
package/dist/index.js
CHANGED