Skip to content

Commit 4b551fb

Browse files
authored
feat: add note on isCustomElement in runtime-only builds (#779)
The isCustomElement config option only applies when using the runtime compiler. Since most users will be using the runtime-only compiler (eg. via vue-loader or @vue/cli), we should add a note that they may need to configure vue-loader instead.
1 parent 2888e50 commit 4b551fb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/api/application-config.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,10 @@ Specifies a method to recognize custom elements defined outside of Vue (e.g., us
9494

9595
> Note that all native HTML and SVG tags don't need to be matched in this function - Vue parser performs this check automatically
9696
97+
::: tip Important
98+
This config option is only respected when using the runtime compiler. If you are using the runtime-only build, `isCustomElement` must be passed to `@vue/compiler-dom` in the build setup instead - for example, via the [`compilerOptions` option in vue-loader](https://vue-loader.vuejs.org/options.html#compileroptions).
99+
:::
100+
97101
## optionMergeStrategies
98102

99103
- **Type:** `{ [key: string]: Function }`

0 commit comments

Comments
 (0)