*Process native modules before node rewrites

This commit is contained in:
Derrick Hammer 2022-12-14 12:33:04 -05:00
parent 22486b4f6a
commit dae09bb090
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 9 additions and 9 deletions

18
dist/index.js vendored
View File

@ -5,13 +5,13 @@ import { bundleNativeModulesPlugin } from "@lumeweb/rollup-plugin-bundle-native-
import typescript from "@rollup/plugin-typescript"; import typescript from "@rollup/plugin-typescript";
import json from "@rollup/plugin-json"; import json from "@rollup/plugin-json";
export default function preset() { export default function preset() {
return defineConfig({ return defineConfig({
plugins: [ plugins: [
typescript(), typescript(),
json(), json(),
nodeResolve(), bundleNativeModulesPlugin(),
commonjs(), nodeResolve(),
bundleNativeModulesPlugin(), commonjs(),
], ],
}); });
} }