'throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option");'
'throw new @Error("options.hydrate only works if the component was compiled with the `hydratable: true` option");'
);
}
@ -106,7 +106,7 @@ export default function dom(
}elseif(component.compile_options.dev){
body.push(deindent`
get${x.export_name}(){
thrownewError("<${component.tag}>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'");
thrownew@Error("<${component.tag}>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'");
}
`);
}
@ -122,14 +122,14 @@ export default function dom(
}elseif(component.compile_options.dev){
body.push(deindent`
set${x.export_name}(value){
thrownewError("<${component.tag}>: Cannot set read-only property '${x.export_name}'");
thrownew@Error("<${component.tag}>: Cannot set read-only property '${x.export_name}'");
}
`);
}
}elseif(component.compile_options.dev){
body.push(deindent`
set${x.export_name}(value){
thrownewError("<${component.tag}>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'");
thrownew@Error("<${component.tag}>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'");