generate internal-exports file

pull/2887/head
Richard Harris 6 years ago
parent 76b02623a0
commit 7777bf0d81

@ -82,6 +82,16 @@ export default [
}
],
external,
plugins: [ts_plugin]
plugins: [
ts_plugin,
dir === 'internal' && {
generateBundle(options, bundle) {
const mod = bundle['internal.mjs'];
if (mod) {
fs.writeFileSync('src/compile/internal-exports.ts', `// This file is automatically generated\nexport default new Set(${JSON.stringify(mod.exports)});`);
}
}
}
]
}))
];

Loading…
Cancel
Save