From 398bee7e03284720e62f3550e1ff72d67ab12c0d Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Sun, 2 Jul 2023 04:06:39 -0400 Subject: [PATCH] fix: pass browser to supplementaryConfig --- src/index.ts | 24 ++---------------------- 1 file changed, 2 insertions(+), 22 deletions(-) diff --git a/src/index.ts b/src/index.ts index 189fca6..545c6ed 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,8 +1,5 @@ import type { PresetAsset } from "presetter-types"; import { PresetContext } from "presetter-types"; -import { createRequire } from "node:module"; - -const require = createRequire(import.meta.url); /** * get the list of templates provided by this preset @@ -20,25 +17,8 @@ export default async function (context: PresetContext): Promise { ], supplementaryIgnores: ignores, supplementaryConfig: { - rollup: { - output: { - "0": { - inlineDynamicImports: true, - }, - "1": { - browser: true, - preferBuiltins: false, - }, - }, - plugins: [ - [ - "@apply @rollup/plugin-wasm[default]", - { - targetEnv: "auto-inline", - }, - ], - ], - }, + // @ts-ignore + browser: true, release: { plugins: { "3": ["@semantic-release/npm", { npmPublish: false }],