From 5918b024067574ef429ce0b225dc62e30e07883c Mon Sep 17 00:00:00 2001 From: baseballyama Date: Thu, 14 Apr 2022 18:59:29 +0900 Subject: [PATCH] move 'boolean_attribute' to shared --- src/compiler/compile/render_ssr/handlers/Element.ts | 2 +- src/runtime/internal/ssr.ts | 2 +- .../render_ssr/handlers => }/shared/boolean_attributes.ts | 0 3 files changed, 2 insertions(+), 2 deletions(-) rename src/{compiler/compile/render_ssr/handlers => }/shared/boolean_attributes.ts (100%) diff --git a/src/compiler/compile/render_ssr/handlers/Element.ts b/src/compiler/compile/render_ssr/handlers/Element.ts index 6d73af8cb6..46335e7f24 100644 --- a/src/compiler/compile/render_ssr/handlers/Element.ts +++ b/src/compiler/compile/render_ssr/handlers/Element.ts @@ -1,6 +1,6 @@ import { is_void } from '../../../../shared/utils/names'; import { get_attribute_expression, get_attribute_value, get_class_attribute_value } from './shared/get_attribute_value'; -import { boolean_attributes } from './shared/boolean_attributes'; +import { boolean_attributes } from '../../../../shared/boolean_attributes'; import Renderer, { RenderOptions } from '../Renderer'; import Element from '../../nodes/Element'; import { p, x } from 'code-red'; diff --git a/src/runtime/internal/ssr.ts b/src/runtime/internal/ssr.ts index 2eaaf8392e..bb1b1b8f73 100644 --- a/src/runtime/internal/ssr.ts +++ b/src/runtime/internal/ssr.ts @@ -1,6 +1,6 @@ import { set_current_component, current_component } from './lifecycle'; import { run_all, blank_object } from './utils'; -import { boolean_attributes } from '../../compiler/compile/render_ssr/handlers/shared/boolean_attributes'; +import { boolean_attributes } from '../../shared/boolean_attributes'; export { is_void } from '../../shared/utils/names'; export const invalid_attribute_name_character = /[\s'">/=\u{FDD0}-\u{FDEF}\u{FFFE}\u{FFFF}\u{1FFFE}\u{1FFFF}\u{2FFFE}\u{2FFFF}\u{3FFFE}\u{3FFFF}\u{4FFFE}\u{4FFFF}\u{5FFFE}\u{5FFFF}\u{6FFFE}\u{6FFFF}\u{7FFFE}\u{7FFFF}\u{8FFFE}\u{8FFFF}\u{9FFFE}\u{9FFFF}\u{AFFFE}\u{AFFFF}\u{BFFFE}\u{BFFFF}\u{CFFFE}\u{CFFFF}\u{DFFFE}\u{DFFFF}\u{EFFFE}\u{EFFFF}\u{FFFFE}\u{FFFFF}\u{10FFFE}\u{10FFFF}]/u; diff --git a/src/compiler/compile/render_ssr/handlers/shared/boolean_attributes.ts b/src/shared/boolean_attributes.ts similarity index 100% rename from src/compiler/compile/render_ssr/handlers/shared/boolean_attributes.ts rename to src/shared/boolean_attributes.ts