From 58dcda14c265122eb497d347b4d6429cf9401147 Mon Sep 17 00:00:00 2001 From: Ryan Carniato Date: Tue, 18 Jan 2022 22:16:06 -0800 Subject: [PATCH] Revert "fix around vite plugin merging" This reverts commit 166554e6d477e73efb084165995d6981f9b57473. --- package.json | 2 +- src/index.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 0fd3e09..4896e7f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "vite-plugin-solid", - "version": "2.2.3", + "version": "2.2.2", "description": "solid-js integration plugin for vite 2", "type": "module", "files": [ diff --git a/src/index.ts b/src/index.ts index 1d022ae..b85d4cb 100644 --- a/src/index.ts +++ b/src/index.ts @@ -336,7 +336,7 @@ export default function solidPlugin(options: Partial = {}): Plugin { filename: id, sourceFileName: id, presets: [[solid, { ...solidOptions, ...(options.solid || {}) }]], - plugins: needHmr && !isSsr && !inNodeModules ? [[solidRefresh, { bundler: 'vite' }]] : undefined, + plugins: needHmr && !isSsr && !inNodeModules ? [[solidRefresh, { bundler: 'vite' }]] : [], sourceMaps: true, // Vite handles sourcemap flattening inputSourceMap: false as any,