From 0b86b78918155a935e2d90c64ee1c81a4589c4e8 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Thu, 29 Jun 2023 18:18:47 -0400 Subject: [PATCH] refactor: override rollup.plugins --- src/index.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/index.ts b/src/index.ts index 3ddae6b..e2c0335 100644 --- a/src/index.ts +++ b/src/index.ts @@ -16,6 +16,18 @@ export default async function (context: PresetContext): Promise { supplementaryConfig: { rollup: { 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", + }, + }, }, }, };