Skip to content

Commit

Permalink
fix around vite plugin merging
Browse files Browse the repository at this point in the history
  • Loading branch information
ryansolid committed Jan 16, 2022
1 parent 2162537 commit 84c2568
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": [
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ export default function solidPlugin(options: Partial<Options> = {}): 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,
Expand Down

0 comments on commit 84c2568

Please sign in to comment.