fix: pass browser to supplementaryConfig

This commit is contained in:
Derrick Hammer 2023-07-02 04:06:39 -04:00
parent 8cbdf3fa98
commit 398bee7e03
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 2 additions and 22 deletions

View File

@ -1,8 +1,5 @@
import type { PresetAsset } from "presetter-types"; import type { PresetAsset } from "presetter-types";
import { PresetContext } 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 * get the list of templates provided by this preset
@ -20,25 +17,8 @@ export default async function (context: PresetContext): Promise<PresetAsset> {
], ],
supplementaryIgnores: ignores, supplementaryIgnores: ignores,
supplementaryConfig: { supplementaryConfig: {
rollup: { // @ts-ignore
output: {
"0": {
inlineDynamicImports: true,
},
"1": {
browser: true, browser: true,
preferBuiltins: false,
},
},
plugins: [
[
"@apply @rollup/plugin-wasm[default]",
{
targetEnv: "auto-inline",
},
],
],
},
release: { release: {
plugins: { plugins: {
"3": ["@semantic-release/npm", { npmPublish: false }], "3": ["@semantic-release/npm", { npmPublish: false }],