mirror of
https://github.com/sveltejs/svelte.git
synced 2024-12-01 17:30:59 +01:00
generate internal-exports file
This commit is contained in:
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…
Reference in New Issue
Block a user