Skip to content

Commit ebdbebe

Browse files
committed
removing vue2 alias to use the full build
1 parent 40f8ae8 commit ebdbebe

File tree

2 files changed

+21
-7
lines changed

2 files changed

+21
-7
lines changed

CHANGELOG.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,26 @@
11
# CHANGELOG
22

3+
## 0.30.0
4+
5+
* [BC BREAK] The Vue "build" was changed from `vue.esm.js` (full build) to
6+
`vue.runtime.esm.js` (runtime build). With the runtime build, there are
7+
two things that you cannot do:
8+
9+
A) You cannot pass a string to `template`:
10+
11+
```js
12+
```
13+
14+
B) You cannot mount to a DOM element and use its HTML as your template:
15+
16+
```js
17+
new Vue({
18+
el: '#app', // where <div id="app"> contains your Vue template
19+
});
20+
```
21+
22+
If you need this behavior, call `Encore.addAliases({ vue$: 'vue/dist/vue.esm.js' });`
23+
324
## 0.29.0
425

526
* Support for Node 8 was dropped.

lib/config-generator.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -101,13 +101,6 @@ class ConfigGenerator {
101101
alias: {}
102102
};
103103

104-
if (this.webpackConfig.useVueLoader) {
105-
const vueVersion = getVueVersion(this.webpackConfig);
106-
if (vueVersion === 2) {
107-
config.resolve.alias['vue$'] = 'vue/dist/vue.esm.js';
108-
}
109-
}
110-
111104
if (this.webpackConfig.usePreact && this.webpackConfig.preactOptions.preactCompat) {
112105
config.resolve.alias['react'] = 'preact-compat';
113106
config.resolve.alias['react-dom'] = 'preact-compat';

0 commit comments

Comments
 (0)