We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d703dca commit a0393b2Copy full SHA for a0393b2
packages/svelte/src/compiler/compile/Component.js
@@ -777,7 +777,7 @@ export default class Component {
777
if (node.type === 'VariableDeclaration' && node.kind === 'const') {
778
immutable = true;
779
for (const declaration of node.declarations) {
780
- if (declaration.init.type !== 'Literal' || typeof declaration.init.value === 'object') {
+ if (declaration.init.type !== 'Literal') {
781
immutable = false;
782
}
783
0 commit comments