diff --git a/packages/preset-dumi/src/transformer/demo/options.ts b/packages/preset-dumi/src/transformer/demo/options.ts index cf26183fb4..f83976c5e5 100644 --- a/packages/preset-dumi/src/transformer/demo/options.ts +++ b/packages/preset-dumi/src/transformer/demo/options.ts @@ -15,6 +15,7 @@ export const getBabelOptions = ({ isTSX, fileAbsPath, transformRuntime }: IDemoO { reactRequire: false, typescript: isTSX, + env: { ignoreBrowserslistConfig: true }, ...(transformRuntime === undefined ? {} : { transformRuntime }), }, ],