Skip to content

Commit

Permalink
🐛 Merge arrays together'
Browse files Browse the repository at this point in the history
  • Loading branch information
amoutonbrady committed Mar 15, 2021
1 parent 2b2ade7 commit a2e7837
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Plugin, UserConfig } from 'vite';
import { readFileSync } from 'fs';
import { transformAsync, TransformOptions } from '@babel/core';
import { merge } from 'merge-anything';
import { mergeAndConcat } from 'merge-anything';

const runtimePublicPath = '/@solid-refresh';
const runtimeFilePath = require.resolve('solid-refresh/dist/solid-refresh.mjs');
Expand All @@ -28,7 +28,7 @@ export default function solidPlugin(options: Partial<Options> = {}): Plugin {
? [{ find: /^solid-js$/, replacement: 'solid-js/dev' }]
: [];

return merge(userConfig, {
return mergeAndConcat(userConfig, {
/**
* We only need esbuild on .ts or .js files.
* .tsx & .jsx files are handled by us
Expand Down

0 comments on commit a2e7837

Please sign in to comment.