refactor: override rollup.plugins

This commit is contained in:
Derrick Hammer 2023-06-29 18:18:47 -04:00
parent c8d79e64a1
commit 0b86b78918
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 12 additions and 0 deletions

View File

@ -16,6 +16,18 @@ export default async function (context: PresetContext): Promise<PresetAsset> {
supplementaryConfig: { supplementaryConfig: {
rollup: { rollup: {
output: { file: "{output}/index.js", format: "cjs", sourcemap: true }, output: { file: "{output}/index.js", format: "cjs", sourcemap: true },
plugins: {
"@apply @rollup/plugin-json[default]": {},
"@apply rollup-plugin-ts[default]": {},
"@apply rollup-plugin-tsconfig-paths[default]": {},
"@apply @rollup/plugin-node-resolve[default]": {},
"@apply @rollup/plugin-commonjs[default]": {
extensions: [".js", ".jsx", ".ts", ".tsx"],
},
"@apply @rollup/plugin-wasm[default]": {
targetEnv: "auto-inline",
},
},
}, },
}, },
}; };