fix: pass browser to supplementaryConfig
This commit is contained in:
parent
8cbdf3fa98
commit
398bee7e03
22
src/index.ts
22
src/index.ts
|
@ -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 }],
|
||||||
|
|
Loading…
Reference in New Issue