|
|
|
@ -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)});`
|
|
|
|
)});`
|
|
|
|
|
|
|
|
);
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|