pull/8504/head
gtmnayan 3 years ago
parent bbd97b2da5
commit 73d81b1ec7

@ -72,16 +72,15 @@ export default [
{
writeBundle(_options, bundle) {
for (const [_, entry] of Object.entries(bundle)) {
let dir = entry.name;
const dir = entry.name;
if (!entry.isEntry || !runtime_entrypoints[dir]) continue;
if (dir === "internal") {
const mod = bundle[`internal/index.mjs`];
if (mod) {
fs.writeFileSync(
"src/compiler/compile/internal_exports.ts",
`// This file is automatically generated\nexport default new Set(${JSON.stringify(
mod.exports
)});`
`// This file is automatically generated` +
`export default new Set(${JSON.stringify(mod.exports)});`
);
}
}

Loading…
Cancel
Save