vue 2.6.8 → 2.6.12

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.
Files changed (42) hide show
  1. package/README.md +61 -81
  2. package/dist/README.md +3 -5
  3. package/dist/vue.common.dev.js +97 -44
  4. package/dist/vue.common.prod.js +3 -3
  5. package/dist/vue.esm.browser.js +97 -44
  6. package/dist/vue.esm.browser.min.js +3 -3
  7. package/dist/vue.esm.js +97 -44
  8. package/dist/vue.js +97 -44
  9. package/dist/vue.min.js +3 -3
  10. package/dist/vue.runtime.common.dev.js +73 -35
  11. package/dist/vue.runtime.common.prod.js +3 -3
  12. package/dist/vue.runtime.esm.js +73 -35
  13. package/dist/vue.runtime.js +73 -35
  14. package/dist/vue.runtime.min.js +3 -3
  15. package/package.json +4 -4
  16. package/src/compiler/codegen/events.js +1 -1
  17. package/src/compiler/error-detector.js +18 -3
  18. package/src/compiler/parser/html-parser.js +2 -2
  19. package/src/compiler/parser/index.js +5 -5
  20. package/src/core/instance/proxy.js +1 -1
  21. package/src/core/instance/render-helpers/bind-dynamic-keys.js +2 -2
  22. package/src/core/instance/render-helpers/bind-object-props.js +5 -3
  23. package/src/core/instance/render.js +1 -1
  24. package/src/core/observer/scheduler.js +17 -6
  25. package/src/core/util/env.js +1 -2
  26. package/src/core/util/error.js +4 -3
  27. package/src/core/util/next-tick.js +1 -1
  28. package/src/core/vdom/create-element.js +6 -0
  29. package/src/core/vdom/helpers/normalize-scoped-slots.js +9 -4
  30. package/src/core/vdom/helpers/resolve-async-component.js +16 -4
  31. package/src/core/vdom/patch.js +4 -4
  32. package/src/platforms/web/compiler/modules/model.js +1 -1
  33. package/src/platforms/web/runtime/modules/dom-props.js +3 -2
  34. package/src/platforms/web/runtime/modules/events.js +4 -2
  35. package/src/platforms/web/runtime/modules/transition.js +1 -1
  36. package/src/platforms/web/server/util.js +4 -4
  37. package/src/server/template-renderer/create-async-file-mapper.js +2 -2
  38. package/types/index.d.ts +1 -2
  39. package/types/options.d.ts +3 -3
  40. package/types/umd.d.ts +48 -0
  41. package/types/vnode.d.ts +1 -1
  42. package/types/vue.d.ts +1 -1
package/README.md CHANGED
@@ -1,12 +1,12 @@
1
1
  <p align="center"><a href="https://vuejs.org" target="_blank" rel="noopener noreferrer"><img width="100" src="https://vuejs.org/images/logo.png" alt="Vue logo"></a></p>
2
2
 
3
3
  <p align="center">
4
- <a href="https://circleci.com/gh/vuejs/vue/tree/dev"><img src="https://img.shields.io/circleci/project/github/vuejs/vue/dev.svg" alt="Build Status"></a>
5
- <a href="https://codecov.io/github/vuejs/vue?branch=dev"><img src="https://img.shields.io/codecov/c/github/vuejs/vue/dev.svg" alt="Coverage Status"></a>
6
- <a href="https://npmcharts.com/compare/vue?minimal=true"><img src="https://img.shields.io/npm/dm/vue.svg" alt="Downloads"></a>
7
- <a href="https://www.npmjs.com/package/vue"><img src="https://img.shields.io/npm/v/vue.svg" alt="Version"></a>
8
- <a href="https://www.npmjs.com/package/vue"><img src="https://img.shields.io/npm/l/vue.svg" alt="License"></a>
9
- <a href="https://chat.vuejs.org/"><img src="https://img.shields.io/badge/chat-on%20discord-7289da.svg" alt="Chat"></a>
4
+ <a href="https://circleci.com/gh/vuejs/vue/tree/dev"><img src="https://img.shields.io/circleci/project/github/vuejs/vue/dev.svg?sanitize=true" alt="Build Status"></a>
5
+ <a href="https://codecov.io/github/vuejs/vue?branch=dev"><img src="https://img.shields.io/codecov/c/github/vuejs/vue/dev.svg?sanitize=true" alt="Coverage Status"></a>
6
+ <a href="https://npmcharts.com/compare/vue?minimal=true"><img src="https://img.shields.io/npm/dm/vue.svg?sanitize=true" alt="Downloads"></a>
7
+ <a href="https://www.npmjs.com/package/vue"><img src="https://img.shields.io/npm/v/vue.svg?sanitize=true" alt="Version"></a>
8
+ <a href="https://www.npmjs.com/package/vue"><img src="https://img.shields.io/npm/l/vue.svg?sanitize=true" alt="License"></a>
9
+ <a href="https://chat.vuejs.org/"><img src="https://img.shields.io/badge/chat-on%20discord-7289da.svg?sanitize=true" alt="Chat"></a>
10
10
  <br>
11
11
  <a href="https://app.saucelabs.com/builds/50f8372d79f743a3b25fb6ca4851ca4c"><img src="https://app.saucelabs.com/buildstatus/vuejs" alt="Build Status"></a>
12
12
  </p>
@@ -27,8 +27,8 @@ Funds donated via Patreon go directly to support Evan You's full-time work on Vu
27
27
  <!--special start-->
28
28
 
29
29
  <p align="center">
30
- <a href="https://stdlib.com/" target="_blank">
31
- <img width="260px" src="https://raw.githubusercontent.com/vuejs/vuejs.org/master/themes/vue/source/images/stdlib.png">
30
+ <a href="https://autocode.com/" target="_blank">
31
+ <img width="260px" src="https://raw.githubusercontent.com/vuejs/vuejs.org/master/themes/vue/source/images/autocode.svg?sanitize=true">
32
32
  </a>
33
33
  </p>
34
34
 
@@ -41,35 +41,30 @@ Funds donated via Patreon go directly to support Evan You's full-time work on Vu
41
41
  <tbody>
42
42
  <tr>
43
43
  <td align="center" valign="middle">
44
- <a href="https://moduscreate.com/?utm_source=Vue&utm_medium=Partnership&utm_campaign=VueShip" target="_blank">
45
- <img width="222px" src="https://raw.githubusercontent.com/vuejs/vuejs.org/master/themes/vue/source/images/modus.png">
44
+ <a href="https://vueschool.io/?utm_source=Vuejs.org&utm_medium=Banner&utm_campaign=Sponsored%20Banner&utm_content=V1" target="_blank">
45
+ <img width="222px" src="https://raw.githubusercontent.com/vuejs/vuejs.org/master/themes/vue/source/images/vueschool.png">
46
46
  </a>
47
47
  </td>
48
48
  <td align="center" valign="middle">
49
- <a href="https://www.bitsrc.io/?utm_source=vue&utm_medium=vue&utm_campaign=vue&utm_term=vue&utm_content=vue" target="_blank">
50
- <img width="222px" src="https://raw.githubusercontent.com/vuejs/vuejs.org/master/themes/vue/source/images/bit.png">
49
+ <a href="https://vehikl.com/" target="_blank">
50
+ <img width="222px" src="https://raw.githubusercontent.com/vuejs/vuejs.org/master/themes/vue/source/images/vehikl.png">
51
51
  </a>
52
52
  </td>
53
53
  <td align="center" valign="middle">
54
- <a href="http://tooltwist.com/" target="_blank">
55
- <img width="222px" src="https://raw.githubusercontent.com/vuejs/vuejs.org/master/themes/vue/source/images/tooltwist.png">
54
+ <a href="https://retool.com/?utm_source=sponsor&utm_campaign=vue" target="_blank">
55
+ <img width="222px" src="https://raw.githubusercontent.com/vuejs/vuejs.org/master/themes/vue/source/images/retool.png">
56
56
  </a>
57
57
  </td>
58
58
  <td align="center" valign="middle">
59
- <a href="https://vueschool.io/?utm_source=Vuejs.org&utm_medium=Banner&utm_campaign=Sponsored%20Banner&utm_content=V1" target="_blank">
60
- <img width="222px" src="https://raw.githubusercontent.com/vuejs/vuejs.org/master/themes/vue/source/images/vueschool.png">
59
+ <a href="https://passionatepeople.io/" target="_blank">
60
+ <img width="222px" src="https://raw.githubusercontent.com/vuejs/vuejs.org/master/themes/vue/source/images/passionate_people.png">
61
61
  </a>
62
62
  </td>
63
63
  </tr><tr></tr>
64
64
  <tr>
65
65
  <td align="center" valign="middle">
66
- <a href="https://vehikl.com/" target="_blank">
67
- <img width="222px" src="https://raw.githubusercontent.com/vuejs/vuejs.org/master/themes/vue/source/images/vehikl.png">
68
- </a>
69
- </td>
70
- <td align="center" valign="middle">
71
- <a href="https://www.nativescript.org/vue?utm_source=vue-js-org&utm_medium=website&utm_campaign=nativescript-awareness" target="_blank">
72
- <img width="222px" src="https://raw.githubusercontent.com/vuejs/vuejs.org/master/themes/vue/source/images/nativescript.png">
66
+ <a href="https://www.storyblok.com" target="_blank">
67
+ <img width="222px" src="https://raw.githubusercontent.com/vuejs/vuejs.org/master/themes/vue/source/images/storyblok.png">
73
68
  </a>
74
69
  </td>
75
70
  </tr><tr></tr>
@@ -92,7 +87,7 @@ Funds donated via Patreon go directly to support Evan You's full-time work on Vu
92
87
  </table>
93
88
  <!--special-china end-->
94
89
 
95
- <h3 align="center">Gold Sponsors</h4>
90
+ <h3 align="center">Gold Sponsors</h3>
96
91
 
97
92
  <!--gold start-->
98
93
  <table>
@@ -108,11 +103,6 @@ Funds donated via Patreon go directly to support Evan You's full-time work on Vu
108
103
  <img width="148px" src="https://raw.githubusercontent.com/vuejs/vuejs.org/master/themes/vue/source/images/laravel.png">
109
104
  </a>
110
105
  </td>
111
- <td align="center" valign="middle">
112
- <a href="https://chaitin.cn/en/" target="_blank">
113
- <img width="148px" src="https://raw.githubusercontent.com/vuejs/vuejs.org/master/themes/vue/source/images/chaitin.png">
114
- </a>
115
- </td>
116
106
  <td align="center" valign="middle">
117
107
  <a href="https://htmlburger.com" target="_blank">
118
108
  <img width="148px" src="https://raw.githubusercontent.com/vuejs/vuejs.org/master/themes/vue/source/images/html_burger.png">
@@ -120,7 +110,7 @@ Funds donated via Patreon go directly to support Evan You's full-time work on Vu
120
110
  </td>
121
111
  <td align="center" valign="middle">
122
112
  <a href="https://www.frontenddeveloperlove.com/" target="_blank">
123
- <img width="148px" src="https://raw.githubusercontent.com/vuejs/vuejs.org/master/themes/vue/source/images/frontend_love.png">
113
+ <img width="148px" src="https://raw.githubusercontent.com/vuejs/vuejs.org/master/themes/vue/source/images/frontendlove.png">
124
114
  </a>
125
115
  </td>
126
116
  <td align="center" valign="middle">
@@ -128,100 +118,90 @@ Funds donated via Patreon go directly to support Evan You's full-time work on Vu
128
118
  <img width="148px" src="https://raw.githubusercontent.com/vuejs/vuejs.org/master/themes/vue/source/images/onsen_ui.png">
129
119
  </a>
130
120
  </td>
131
- </tr><tr></tr>
132
- <tr>
133
- <td align="center" valign="middle">
134
- <a href="https://vuetifyjs.com" target="_blank">
135
- <img width="148px" src="https://raw.githubusercontent.com/vuejs/vuejs.org/master/themes/vue/source/images/vuetify.png">
136
- </a>
137
- </td>
138
121
  <td align="center" valign="middle">
139
122
  <a href="https://neds.com.au/" target="_blank">
140
123
  <img width="148px" src="https://raw.githubusercontent.com/vuejs/vuejs.org/master/themes/vue/source/images/neds.png">
141
124
  </a>
142
125
  </td>
143
- <td align="center" valign="middle">
144
- <a href="https://icons8.com/" target="_blank">
145
- <img width="148px" src="https://raw.githubusercontent.com/vuejs/vuejs.org/master/themes/vue/source/images/icons_8.png">
146
- </a>
147
- </td>
126
+ </tr><tr></tr>
127
+ <tr>
148
128
  <td align="center" valign="middle">
149
129
  <a href="https://vuejobs.com/?ref=vuejs" target="_blank">
150
130
  <img width="148px" src="https://raw.githubusercontent.com/vuejs/vuejs.org/master/themes/vue/source/images/vuejobs.png">
151
131
  </a>
152
132
  </td>
153
133
  <td align="center" valign="middle">
154
- <a href="https://www.valuecoders.com" target="_blank">
155
- <img width="148px" src="https://raw.githubusercontent.com/vuejs/vuejs.org/master/themes/vue/source/images/valuecoders.png">
134
+ <a href="https://tidelift.com/subscription/npm/vue" target="_blank">
135
+ <img width="148px" src="https://raw.githubusercontent.com/vuejs/vuejs.org/master/themes/vue/source/images/tidelift.png">
156
136
  </a>
157
137
  </td>
158
138
  <td align="center" valign="middle">
159
- <a href="https://tidelift.com/subscription/npm/vue" target="_blank">
160
- <img width="148px" src="https://raw.githubusercontent.com/vuejs/vuejs.org/master/themes/vue/source/images/tidelift.png">
139
+ <a href="https://www.firesticktricks.com/" target="_blank">
140
+ <img width="148px" src="https://raw.githubusercontent.com/vuejs/vuejs.org/master/themes/vue/source/images/firestick_tricks.png">
161
141
  </a>
162
142
  </td>
163
- </tr><tr></tr>
164
- <tr>
165
143
  <td align="center" valign="middle">
166
- <a href="https://webdock.io/en" target="_blank">
167
- <img width="148px" src="https://raw.githubusercontent.com/vuejs/vuejs.org/master/themes/vue/source/images/webdock.png">
144
+ <a href="https://intygrate.com/" target="_blank">
145
+ <img width="148px" src="https://raw.githubusercontent.com/vuejs/vuejs.org/master/themes/vue/source/images/intygrate.png">
168
146
  </a>
169
147
  </td>
170
148
  <td align="center" valign="middle">
171
- <a href="http://www.syncfusion.com/?utm_source=vuejs&utm_medium=list&utm_campaign=vuejsjslistcy19" target="_blank">
172
- <img width="148px" src="https://raw.githubusercontent.com/vuejs/vuejs.org/master/themes/vue/source/images/syncfusion.png">
149
+ <a href="http://en.shopware.com/" target="_blank">
150
+ <img width="148px" src="https://raw.githubusercontent.com/vuejs/vuejs.org/master/themes/vue/source/images/shopware_ag.png">
173
151
  </a>
174
152
  </td>
175
153
  <td align="center" valign="middle">
176
- <a href="https://opteo.com/vue" target="_blank">
177
- <img width="148px" src="https://raw.githubusercontent.com/vuejs/vuejs.org/master/themes/vue/source/images/opteo.png">
154
+ <a href="https://www.vpnranks.com/" target="_blank">
155
+ <img width="148px" src="https://raw.githubusercontent.com/vuejs/vuejs.org/master/themes/vue/source/images/vpnranks.png">
178
156
  </a>
179
157
  </td>
158
+ </tr><tr></tr>
159
+ <tr>
180
160
  <td align="center" valign="middle">
181
- <a href="https://devsquad.com/" target="_blank">
182
- <img width="148px" src="https://raw.githubusercontent.com/vuejs/vuejs.org/master/themes/vue/source/images/devsquad.png">
161
+ <a href="https://www.bacancytechnology.com/hire-vuejs-developer" target="_blank">
162
+ <img width="148px" src="https://raw.githubusercontent.com/vuejs/vuejs.org/master/themes/vue/source/images/bacancy_technology.png">
183
163
  </a>
184
164
  </td>
185
165
  <td align="center" valign="middle">
186
- <a href="https://www.inkoop.in/" target="_blank">
187
- <img width="148px" src="https://raw.githubusercontent.com/vuejs/vuejs.org/master/themes/vue/source/images/inkoop.png">
166
+ <a href="https://www.bestvpn.co/" target="_blank">
167
+ <img width="148px" src="https://raw.githubusercontent.com/vuejs/vuejs.org/master/themes/vue/source/images/bestvpn_co.png">
188
168
  </a>
189
169
  </td>
190
170
  <td align="center" valign="middle">
191
- <a href="https://www.firesticktricks.com/" target="_blank">
192
- <img width="148px" src="https://raw.githubusercontent.com/vuejs/vuejs.org/master/themes/vue/source/images/firestick_tricks.png">
171
+ <a href="https://www.y8.com/" target="_blank">
172
+ <img width="148px" src="https://raw.githubusercontent.com/vuejs/vuejs.org/master/themes/vue/source/images/y8.png">
193
173
  </a>
194
174
  </td>
195
- </tr><tr></tr>
196
- <tr>
197
175
  <td align="center" valign="middle">
198
- <a href="https://github.com/marcus-hiles" target="_blank">
199
- <img width="148px" src="https://raw.githubusercontent.com/vuejs/vuejs.org/master/themes/vue/source/images/marcus_hiles.png">
176
+ <a href="https://js.devexpress.com/" target="_blank">
177
+ <img width="148px" src="https://raw.githubusercontent.com/vuejs/vuejs.org/master/themes/vue/source/images/devexpress.png">
200
178
  </a>
201
179
  </td>
202
180
  <td align="center" valign="middle">
203
- <a href="https://intygrate.com/" target="_blank">
204
- <img width="148px" src="https://raw.githubusercontent.com/vuejs/vuejs.org/master/themes/vue/source/images/intygrate.png">
181
+ <a href="https://fastcoding.jp/javascript/ " target="_blank">
182
+ <img width="148px" src="https://raw.githubusercontent.com/vuejs/vuejs.org/master/themes/vue/source/images/fastcoding_inc.svg?sanitize=true">
205
183
  </a>
206
184
  </td>
207
185
  <td align="center" valign="middle">
208
- <a href="https://isleofcode.com/" target="_blank">
209
- <img width="148px" src="https://raw.githubusercontent.com/vuejs/vuejs.org/master/themes/vue/source/images/isle_of_code.png">
186
+ <a href="https://usave.co.uk/utilities/broadband" target="_blank">
187
+ <img width="148px" src="https://raw.githubusercontent.com/vuejs/vuejs.org/master/themes/vue/source/images/usave.png">
210
188
  </a>
211
189
  </td>
190
+ </tr><tr></tr>
191
+ <tr>
212
192
  <td align="center" valign="middle">
213
- <a href="https://yakaz.com/" target="_blank">
214
- <img width="148px" src="https://raw.githubusercontent.com/vuejs/vuejs.org/master/themes/vue/source/images/yakaz.png">
193
+ <a href="https://www.foo.software" target="_blank">
194
+ <img width="148px" src="https://raw.githubusercontent.com/vuejs/vuejs.org/master/themes/vue/source/images/foo.png">
215
195
  </a>
216
196
  </td>
217
197
  <td align="center" valign="middle">
218
- <a href="https://www.bacancytechnology.com" target="_blank">
219
- <img width="148px" src="https://raw.githubusercontent.com/vuejs/vuejs.org/master/themes/vue/source/images/bacancy_technology.png">
198
+ <a href="https://flatlogic.com/templates" target="_blank">
199
+ <img width="148px" src="https://raw.githubusercontent.com/vuejs/vuejs.org/master/themes/vue/source/images/flatlogic_templates.svg?sanitize=true">
220
200
  </a>
221
201
  </td>
222
202
  <td align="center" valign="middle">
223
- <a href="https://passionatepeople.io/" target="_blank">
224
- <img width="148px" src="https://raw.githubusercontent.com/vuejs/vuejs.org/master/themes/vue/source/images/passionate_people.png">
203
+ <a href="http://moovweb.com/" target="_blank">
204
+ <img width="148px" src="https://raw.githubusercontent.com/vuejs/vuejs.org/master/themes/vue/source/images/moovweb.png">
225
205
  </a>
226
206
  </td>
227
207
  </tr><tr></tr>
@@ -233,16 +213,16 @@ Funds donated via Patreon go directly to support Evan You's full-time work on Vu
233
213
 
234
214
  <h4 align="center">Platinum</h4>
235
215
 
236
- <a href="https://opencollective.com/vuejs/tiers/platinum-sponsors/0/website" target="_blank" rel="noopener noreferrer"><img src="https://opencollective.com/vuejs/tiers/platinum-sponsors/0/avatar.svg"></a>
237
- <a href="https://opencollective.com/vuejs/tiers/platinum-sponsors/1/website" target="_blank" rel="noopener noreferrer"><img src="https://opencollective.com/vuejs/tiers/platinum-sponsors/1/avatar.svg"></a>
216
+ <a href="https://opencollective.com/vuejs/tiers/platinum-sponsors/0/website" target="_blank" rel="noopener noreferrer"><img src="https://opencollective.com/vuejs/tiers/platinum-sponsors/0/avatar.svg?sanitize=true"></a>
217
+ <a href="https://opencollective.com/vuejs/tiers/platinum-sponsors/1/website" target="_blank" rel="noopener noreferrer"><img src="https://opencollective.com/vuejs/tiers/platinum-sponsors/1/avatar.svg?sanitize=true"></a>
238
218
 
239
219
  <h4 align="center">Gold</h4>
240
220
 
241
- <a href="https://opencollective.com/vuejs/tiers/gold-sponsors/0/website" target="_blank" rel="noopener noreferrer"><img src="https://opencollective.com/vuejs/tiers/gold-sponsors/0/avatar.svg" height="60px"></a>
242
- <a href="https://opencollective.com/vuejs/tiers/gold-sponsors/1/website" target="_blank" rel="noopener noreferrer"><img src="https://opencollective.com/vuejs/tiers/gold-sponsors/1/avatar.svg" height="60px"></a>
243
- <a href="https://opencollective.com/vuejs/tiers/gold-sponsors/2/website" target="_blank" rel="noopener noreferrer"><img src="https://opencollective.com/vuejs/tiers/gold-sponsors/2/avatar.svg" height="60px"></a>
244
- <a href="https://opencollective.com/vuejs/tiers/gold-sponsors/3/website" target="_blank" rel="noopener noreferrer"><img src="https://opencollective.com/vuejs/tiers/gold-sponsors/3/avatar.svg" height="60px"></a>
245
- <a href="https://opencollective.com/vuejs/tiers/gold-sponsors/4/website" target="_blank" rel="noopener noreferrer"><img src="https://opencollective.com/vuejs/tiers/gold-sponsors/4/avatar.svg" height="60px"></a>
221
+ <a href="https://opencollective.com/vuejs/tiers/gold-sponsors/0/website" target="_blank" rel="noopener noreferrer"><img src="https://opencollective.com/vuejs/tiers/gold-sponsors/0/avatar.svg?sanitize=true" height="60px"></a>
222
+ <a href="https://opencollective.com/vuejs/tiers/gold-sponsors/1/website" target="_blank" rel="noopener noreferrer"><img src="https://opencollective.com/vuejs/tiers/gold-sponsors/1/avatar.svg?sanitize=true" height="60px"></a>
223
+ <a href="https://opencollective.com/vuejs/tiers/gold-sponsors/2/website" target="_blank" rel="noopener noreferrer"><img src="https://opencollective.com/vuejs/tiers/gold-sponsors/2/avatar.svg?sanitize=true" height="60px"></a>
224
+ <a href="https://opencollective.com/vuejs/tiers/gold-sponsors/3/website" target="_blank" rel="noopener noreferrer"><img src="https://opencollective.com/vuejs/tiers/gold-sponsors/3/avatar.svg?sanitize=true" height="60px"></a>
225
+ <a href="https://opencollective.com/vuejs/tiers/gold-sponsors/4/website" target="_blank" rel="noopener noreferrer"><img src="https://opencollective.com/vuejs/tiers/gold-sponsors/4/avatar.svg?sanitize=true" height="60px"></a>
246
226
 
247
227
  ---
248
228
 
package/dist/README.md CHANGED
@@ -9,7 +9,7 @@
9
9
 
10
10
  ### Terms
11
11
 
12
- - **Full**: builds that contains both the compiler and the runtime.
12
+ - **Full**: builds that contain both the compiler and the runtime.
13
13
 
14
14
  - **Compiler**: code that is responsible for compiling template strings into JavaScript render functions.
15
15
 
@@ -25,7 +25,7 @@
25
25
 
26
26
  If you need to compile templates on the fly (e.g. passing a string to the `template` option, or mounting to an element using its in-DOM HTML as the template), you will need the compiler and thus the full build.
27
27
 
28
- When using `vue-loader` or `vueify`, templates inside `*.vue` files are compiled into JavaScript at build time. You don't really need the compiler in the final bundle, and can therefore use the runtime-only build.
28
+ When using `vue-loader` or `vueify`, templates inside `*.vue` files are compiled into JavaScript at build time. You don't really need the compiler in the final bundle, and can therefore, use the runtime-only build.
29
29
 
30
30
  Since the runtime-only builds are roughly 30% lighter-weight than their full-build counterparts, you should use it whenever you can. If you wish to use the full build instead, you need to configure an alias in your bundler.
31
31
 
@@ -90,9 +90,7 @@ module.exports = {
90
90
  plugins: [
91
91
  // ...
92
92
  new webpack.DefinePlugin({
93
- 'process.env': {
94
- NODE_ENV: JSON.stringify('production')
95
- }
93
+ 'process.env.NODE_ENV': JSON.stringify('production')
96
94
  })
97
95
  ]
98
96
  }