svelte
Advanced tools
Comparing version 5.0.0-next.99 to 5.0.0-next.100
@@ -5,3 +5,3 @@ { | ||
"license": "MIT", | ||
"version": "5.0.0-next.99", | ||
"version": "5.0.0-next.100", | ||
"type": "module", | ||
@@ -8,0 +8,0 @@ "types": "./types/index.d.ts", |
@@ -425,3 +425,6 @@ import { walk } from 'zimmerframe'; | ||
if (options.hmr) { | ||
// In order for hmr to work correctly, we need associate each component with a unique key. | ||
// This is because bundlers might put many components into a the same module (usuaully as a chunk). | ||
// `import.meta.hot` will then be the same object for all components in that modules. | ||
if (options.hmr && options.filename) { | ||
body.push( | ||
@@ -435,3 +438,3 @@ b.export_default( | ||
b.id(analysis.name), | ||
b.member(b.member(b.id('import'), b.id('meta')), b.id('url')) | ||
b.literal(options.filename) | ||
), | ||
@@ -438,0 +441,0 @@ b.id(analysis.name) |
@@ -9,3 +9,3 @@ // generated during release, do not modify | ||
*/ | ||
export const VERSION = '5.0.0-next.99'; | ||
export const VERSION = '5.0.0-next.100'; | ||
export const PUBLIC_VERSION = '5'; |
Sorry, the diff of this file is too big to display
1926465
41380