Skip to content

Commit 300d985

Browse files
committed
add a note
1 parent c1be617 commit 300d985

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/api/compile-time-flags.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ outline: deep
44

55
# Compile-Time Flags {#compile-time-flags}
66

7+
:::tip
8+
Compile-time flags only apply when using the `esm-bundler` build of Vue (i.e. `vue/dist/vue.esm-bundler.js`).
9+
:::
10+
711
When using Vue with a build step, it is possible to configure a number of compile-time flags to enable / disable certain features. The benefit of using compile-time flags is that features disabled this way can be removed from the final bundle via tree-shaking.
812

913
Vue will work even if these flags are not explicitly configured. However, it is recommended to always configure them so that the relevant features can be properly removed when possible.

0 commit comments

Comments
 (0)