@lwc/engine-core 7.2.3-alpha.0 → 7.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs.js CHANGED
@@ -6007,6 +6007,11 @@ function buildParseFragmentFn(createFragmentFn) {
6007
6007
  return cached;
6008
6008
  }
6009
6009
  }
6010
+ // See W-16614556
6011
+ if ((hasStyleToken && !shared.isString(stylesheetToken)) ||
6012
+ (hasLegacyToken && !shared.isString(legacyStylesheetToken))) {
6013
+ throw new Error('stylesheet token must be a string');
6014
+ }
6010
6015
  // If legacy stylesheet tokens are required, then add them to the rendered string
6011
6016
  const stylesheetTokenToRender = stylesheetToken + (hasLegacyToken ? ` ${legacyStylesheetToken}` : '');
6012
6017
  const classToken = hasScopedStyles && hasStyleToken ? ' ' + stylesheetTokenToRender : '';
@@ -7830,7 +7835,13 @@ function setHooks(hooks) {
7830
7835
  * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
7831
7836
  */
7832
7837
  // See @lwc/engine-core/src/framework/template.ts
7833
- const TEMPLATE_PROPS = ['slots', 'stylesheetToken', 'stylesheets', 'renderMode'];
7838
+ const TEMPLATE_PROPS = [
7839
+ 'slots',
7840
+ 'stylesheetToken',
7841
+ 'stylesheets',
7842
+ 'renderMode',
7843
+ 'legacyStylesheetToken',
7844
+ ];
7834
7845
  // Expandos that may be placed on a stylesheet factory function, and which are meaningful to LWC at runtime
7835
7846
  const STYLESHEET_PROPS = [
7836
7847
  // SEE `KEY__SCOPED_CSS` in @lwc/style-compiler
@@ -8123,5 +8134,5 @@ exports.swapTemplate = swapTemplate;
8123
8134
  exports.track = track;
8124
8135
  exports.unwrap = unwrap;
8125
8136
  exports.wire = wire;
8126
- /** version: 7.2.2 */
8137
+ /** version: 7.2.4 */
8127
8138
  //# sourceMappingURL=index.cjs.js.map