From 3eafff1f5c5f8601e27cc6a1e7866bad127e31a0 Mon Sep 17 00:00:00 2001 From: CEbbinghaus Date: Sun, 15 Sep 2024 13:56:09 +1000 Subject: [PATCH] Made generateConfig public and switched order of merge --- src/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.js b/src/index.js index dcad1ad..3a662ef 100644 --- a/src/index.js +++ b/src/index.js @@ -16,7 +16,7 @@ import externalGlobals from 'rollup-plugin-external-globals'; * * @returns {import('rollup').RollupOptions} */ -function generateConfig(manifest) { +export function generateConfig(manifest) { return { input: './src/index.tsx', plugins: [ @@ -73,5 +73,5 @@ export default function deckyPlugin(options = {}, sourceRoot = ".") { const manifest = JSON.parse(readFileSync(join(sourceRoot, "plugin.json"), "utf-8")); const defaultOptions = generateConfig(manifest); - return mergeAndConcat(options, defaultOptions) + return mergeAndConcat(defaultOptions, options) }