Commit f58de3a
authored
build(vue): warnings from vue about unset flags #5899
## Problem
#4463
## Solution
The two required flags are set as follows:
- `__VUE_OPTIONS_API__`: `true` since we use the options API
extensively. This is opposed to the newer composition API, which I don't
believe we use. An example of us using the options API can be found
here:
https://github.com/aws/aws-toolkit-vscode/blob/f806ae04f5d56b872282e42d5f765b2b1a9e28dd/packages/core/src/login/webview/vue/login.vue#L321
and more info can be found here
https://vuejs.org/guide/typescript/options-api
- `__VUE_PROD_DEVTOOLS__`: `false` since this is the default, and it
otherwise increases the build size per
https://vuejs.org/api/compile-time-flags.html#VUE_PROD_DEVTOOLS.
## Notes
- Also relevant, composition API:
https://vuejs.org/guide/extras/composition-api-faq.html
- More detail on the flags:
https://vuejs.org/api/compile-time-flags.html#VUE_PROD_DEVTOOLS1 parent c7325af commit f58de3a
1 file changed
+4
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
104 | 108 | | |
105 | 109 | | |
106 | 110 | | |
| |||
0 commit comments