Skip to content

Commit

Permalink
Merge pull request #25 from devinxi/nksaraf-patch-1
Browse files Browse the repository at this point in the history
Disable solid-refresh transform during SSR
  • Loading branch information
ryansolid committed Jan 13, 2022
2 parents 1494e5d + 97debbe commit d61b98d
Showing 1 changed file with 1 addition and 1 deletion.
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 && !inNodeModules ? [[solidRefresh, { bundler: 'vite' }]] : [],
plugins: needHmr && !isSsr && !inNodeModules ? [[solidRefresh, { bundler: 'vite' }]] : [],
sourceMaps: true,
// Vite handles sourcemap flattening
inputSourceMap: false as any,
Expand Down

0 comments on commit d61b98d

Please sign in to comment.