diff --git a/package.json b/package.json index 4896e7f..0fd3e09 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "vite-plugin-solid", - "version": "2.2.2", + "version": "2.2.3", "description": "solid-js integration plugin for vite 2", "type": "module", "files": [ diff --git a/src/index.ts b/src/index.ts index b85d4cb..1d022ae 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' }]] : [], + plugins: needHmr && !isSsr && !inNodeModules ? [[solidRefresh, { bundler: 'vite' }]] : undefined, sourceMaps: true, // Vite handles sourcemap flattening inputSourceMap: false as any,