diff --git a/src/index.ts b/src/index.ts index ed9808f..92252ff 100644 --- a/src/index.ts +++ b/src/index.ts @@ -81,6 +81,8 @@ export default async function (context: PresetContext): Promise { format: "cjs", bundle: true, platform: "node", + mainFields: ["main", "module"], + conditions: ["require"], }, }, variable: DEFAULT_VARIABLE,