Compare commits
2 Commits
b32073e35c
...
09e55ea36f
Author | SHA1 | Date |
---|---|---|
Derrick Hammer | 09e55ea36f | |
Derrick Hammer | 773f1b7b75 |
|
@ -13,4 +13,4 @@ const preset = defineConfig({
|
||||||
bundleNativeModulesPlugin(),
|
bundleNativeModulesPlugin(),
|
||||||
],
|
],
|
||||||
});
|
});
|
||||||
export default preset;
|
export default ;
|
||||||
|
|
24
src/index.ts
24
src/index.ts
|
@ -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;
|
}
|
||||||
|
|
Loading…
Reference in New Issue