diff --git a/rollup.config.js b/rollup.config.js index b32ce36a14..61798c2512 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -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)});`); + } + } + } + ] })) ];