*Force commonjs resolution

This commit is contained in:
Derrick Hammer 2023-01-01 12:16:48 -05:00
parent 69380c7b8e
commit 14c030695d
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 4 additions and 1 deletions

View File

@ -11,7 +11,10 @@ export default function preset(): RollupOptions {
typescript(),
json(),
bundleNativeModulesPlugin(),
nodeResolve(),
nodeResolve({
mainFields: ["main"],
exportConditions: ["node", "require", "default"],
}),
commonjs(),
],
});