diff --git a/src/index.ts b/src/index.ts index 5895edb..e64e683 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,18 +1,18 @@ -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({ - plugins: [ - typescript(), - json(), - nodeResolve(), - commonjs(), - bundleNativeModulesPlugin(), - ], -}); - -export default preset; +export default function preset(): RollupOptions { + return defineConfig({ + plugins: [ + typescript(), + json(), + nodeResolve(), + commonjs(), + bundleNativeModulesPlugin(), + ], + }); +}