2022-12-14 14:54:58 +00:00
|
|
|
import { defineConfig } from "rollup";
|
|
|
|
import commonjs from "@rollup/plugin-commonjs";
|
|
|
|
import { nodeResolve } from "@rollup/plugin-node-resolve";
|
|
|
|
import { bundleNativeModulesPlugin } from "@lumeweb/rollup-plugin-bundle-native-modules";
|
2022-12-14 15:04:02 +00:00
|
|
|
import typescript from "@rollup/plugin-typescript";
|
|
|
|
import json from "@rollup/plugin-json";
|
2022-12-14 15:22:16 +00:00
|
|
|
export default function preset() {
|
2022-12-14 17:33:15 +00:00
|
|
|
return defineConfig({
|
|
|
|
plugins: [
|
|
|
|
typescript(),
|
|
|
|
json(),
|
2022-12-14 18:14:24 +00:00
|
|
|
bundleNativeModulesPlugin(),
|
2022-12-14 17:33:15 +00:00
|
|
|
nodeResolve(),
|
|
|
|
commonjs(),
|
|
|
|
],
|
|
|
|
});
|
2022-12-14 15:22:16 +00:00
|
|
|
}
|