fix: set esbuild mainFields and conditions to prioritize cjs
This commit is contained in:
parent
978292521c
commit
b1d4070193
|
@ -81,6 +81,8 @@ export default async function (context: PresetContext): Promise<PresetAsset> {
|
|||
format: "cjs",
|
||||
bundle: true,
|
||||
platform: "node",
|
||||
mainFields: ["main", "module"],
|
||||
conditions: ["require"],
|
||||
},
|
||||
},
|
||||
variable: DEFAULT_VARIABLE,
|
||||
|
|
Loading…
Reference in New Issue