'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");'
);
}
@ -108,7 +108,7 @@ export default function dom(
}elseif(component.compile_options.dev){
body.push(deindent`
get${x.export_name}(){
thrownew@Error("<${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/>'");
}
`);
}
@ -124,14 +124,14 @@ export default function dom(
}elseif(component.compile_options.dev){
body.push(deindent`
set${x.export_name}(value){
thrownew@Error("<${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){
thrownew@Error("<${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/>'");