*Export function that returns a defineConfig

This commit is contained in:
Derrick Hammer 2022-12-14 10:15:51 -05:00
parent b32073e35c
commit 773f1b7b75
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 12 additions and 12 deletions

View File

@ -1,18 +1,18 @@
import { defineConfig } from "rollup"; import { defineConfig, RollupOptions } from "rollup";
import commonjs from "@rollup/plugin-commonjs"; import commonjs from "@rollup/plugin-commonjs";
import { nodeResolve } from "@rollup/plugin-node-resolve"; import { nodeResolve } from "@rollup/plugin-node-resolve";
import { bundleNativeModulesPlugin } from "@lumeweb/rollup-plugin-bundle-native-modules"; import { bundleNativeModulesPlugin } from "@lumeweb/rollup-plugin-bundle-native-modules";
import typescript from "@rollup/plugin-typescript"; import typescript from "@rollup/plugin-typescript";
import json from "@rollup/plugin-json"; import json from "@rollup/plugin-json";
const preset = defineConfig({ export default function preset(): RollupOptions {
plugins: [ return defineConfig({
typescript(), plugins: [
json(), typescript(),
nodeResolve(), json(),
commonjs(), nodeResolve(),
bundleNativeModulesPlugin(), commonjs(),
], bundleNativeModulesPlugin(),
}); ],
});
export default preset; }