*Export function that returns a defineConfig
This commit is contained in:
parent
b32073e35c
commit
773f1b7b75
10
src/index.ts
10
src/index.ts
|
@ -1,11 +1,12 @@
|
|||
import { defineConfig } from "rollup";
|
||||
import { defineConfig, RollupOptions } from "rollup";
|
||||
import commonjs from "@rollup/plugin-commonjs";
|
||||
import { nodeResolve } from "@rollup/plugin-node-resolve";
|
||||
import { bundleNativeModulesPlugin } from "@lumeweb/rollup-plugin-bundle-native-modules";
|
||||
import typescript from "@rollup/plugin-typescript";
|
||||
import json from "@rollup/plugin-json";
|
||||
|
||||
const preset = defineConfig({
|
||||
export default function preset(): RollupOptions {
|
||||
return defineConfig({
|
||||
plugins: [
|
||||
typescript(),
|
||||
json(),
|
||||
|
@ -13,6 +14,5 @@ const preset = defineConfig({
|
|||
commonjs(),
|
||||
bundleNativeModulesPlugin(),
|
||||
],
|
||||
});
|
||||
|
||||
export default preset;
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue