vue 3.2.36 → 3.2.39

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.
@@ -41,11 +41,15 @@ function compileToFunction(template, options) {
41
41
  // by the server, the template should not contain any user data.
42
42
  template = el ? el.innerHTML : ``;
43
43
  }
44
- const { code } = compile(template, extend({
44
+ const opts = extend({
45
45
  hoistStatic: true,
46
46
  onError: (process.env.NODE_ENV !== 'production') ? onError : undefined,
47
47
  onWarn: (process.env.NODE_ENV !== 'production') ? e => onError(e, true) : NOOP
48
- }, options));
48
+ }, options);
49
+ if (!opts.isCustomElement && typeof customElements !== 'undefined') {
50
+ opts.isCustomElement = tag => !!customElements.get(tag);
51
+ }
52
+ const { code } = compile(template, opts);
49
53
  function onError(err, asWarning = false) {
50
54
  const message = asWarning
51
55
  ? err.message