diff --git a/src/app-data/index.ts b/src/app-data/index.ts index fdc8e08e036..33c39e13853 100644 --- a/src/app-data/index.ts +++ b/src/app-data/index.ts @@ -88,6 +88,7 @@ export const BUILD: BuildConditionals = { cloneNodeFix: false, hydratedAttribute: false, hydratedClass: true, + // TODO(STENCIL-1305): remove this option scriptDataOpts: false, // TODO(STENCIL-914): remove this option when `experimentalSlotFixes` is the default behavior scopedSlotTextContentFix: false, diff --git a/src/compiler/app-core/app-data.ts b/src/compiler/app-core/app-data.ts index 4f51c7188f7..2c941b8e7ae 100644 --- a/src/compiler/app-core/app-data.ts +++ b/src/compiler/app-core/app-data.ts @@ -176,6 +176,7 @@ export const updateBuildConditionals = (config: ValidatedConfig, b: BuildConditi b.lifecycleDOMEvents = !!(b.isDebug || config._isTesting || config.extras.lifecycleDOMEvents); // TODO(STENCIL-914): remove this option when `experimentalSlotFixes` is the default behavior b.scopedSlotTextContentFix = !!config.extras.scopedSlotTextContentFix; + // TODO(STENCIL-1305): remove this option b.scriptDataOpts = config.extras.scriptDataOpts; b.attachStyles = true; b.invisiblePrehydration = typeof config.invisiblePrehydration === 'undefined' ? true : config.invisiblePrehydration; diff --git a/src/compiler/output-targets/dist-hydrate-script/hydrate-build-conditionals.ts b/src/compiler/output-targets/dist-hydrate-script/hydrate-build-conditionals.ts index 3495ef81308..75224d6fa38 100644 --- a/src/compiler/output-targets/dist-hydrate-script/hydrate-build-conditionals.ts +++ b/src/compiler/output-targets/dist-hydrate-script/hydrate-build-conditionals.ts @@ -34,6 +34,7 @@ export const getHydrateBuildConditionals = (cmps: d.ComponentCompilerMeta[]) => build.shadowDomShim = true; build.hydratedAttribute = false; build.hydratedClass = true; + // TODO(STENCIL-1305): remove this option build.scriptDataOpts = false; build.attachStyles = true; diff --git a/src/declarations/stencil-private.ts b/src/declarations/stencil-private.ts index 13949d5bcc1..b09a1f90550 100644 --- a/src/declarations/stencil-private.ts +++ b/src/declarations/stencil-private.ts @@ -181,6 +181,7 @@ export interface BuildConditionals extends Partial { hydratedAttribute?: boolean; hydratedClass?: boolean; initializeNextTick?: boolean; + // TODO(STENCIL-1305): remove this option scriptDataOpts?: boolean; // TODO(STENCIL-854): Remove code related to legacy shadowDomShim field shadowDomShim?: boolean; diff --git a/src/declarations/stencil-public-compiler.ts b/src/declarations/stencil-public-compiler.ts index d40cae80d36..253a80df85c 100644 --- a/src/declarations/stencil-public-compiler.ts +++ b/src/declarations/stencil-public-compiler.ts @@ -328,6 +328,7 @@ interface ConfigExtrasBase { * It is possible to assign data to the actual `