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,