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

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

Loading…
Cancel
Save