*Force commonjs resolution
This commit is contained in:
parent
69380c7b8e
commit
14c030695d
|
@ -11,7 +11,10 @@ export default function preset(): RollupOptions {
|
||||||
typescript(),
|
typescript(),
|
||||||
json(),
|
json(),
|
||||||
bundleNativeModulesPlugin(),
|
bundleNativeModulesPlugin(),
|
||||||
nodeResolve(),
|
nodeResolve({
|
||||||
|
mainFields: ["main"],
|
||||||
|
exportConditions: ["node", "require", "default"],
|
||||||
|
}),
|
||||||
commonjs(),
|
commonjs(),
|
||||||
],
|
],
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue