File tree Expand file tree Collapse file tree 2 files changed +24
-8
lines changed Expand file tree Collapse file tree 2 files changed +24
-8
lines changed Original file line number Diff line number Diff line change 2
2
3
3
## 0.30.0
4
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
+ new Vue ({
13
+ template: ' <div>{{ hi }}</div>'
14
+ })
15
+ ```
16
+
17
+ B) You cannot mount to a DOM element and use its HTML as your template:
18
+
19
+ ``` js
20
+ new Vue ({
21
+ el: ' #app' , // where <div id="app"> contains your Vue template
22
+ });
23
+ ```
24
+
25
+ If you need this behavior, call ` Encore.addAliases({ vue$: 'vue/dist/vue.esm.js' }); `
26
+
5
27
* [ DEPENDENCY UPGRADE] ` sass-loader ` was upgraded from version 7 to 8.
6
28
See the [ CHANGELOG] ( https://github.com/webpack-contrib/sass-loader/blob/master/CHANGELOG.md#800-2019-08-29 )
7
29
for breaking changes. This likely will not affect you unless pass
38
60
thanks to @jdreesen .
39
61
40
62
* [ DEPENDENCY UPGRADE] The ` fork-ts-checker-webpack-plugin ` package was upgraded for the tests
63
+
64
+ * The ` fork-ts-checker-webpack-plugin ` package was upgraded for the tests
41
65
from ` ^0.4.1 ` to ` ^4.0.0 ` . If you're using ` enableForkedTypeScriptTypesChecking() ` ,
42
66
you control the ` fork-ts-checker-webpack-plugin ` version in your
43
67
` package.json ` file. You should upgrade to ` ^4.0.0 ` to ensure
Original file line number Diff line number Diff line change @@ -43,7 +43,6 @@ const PluginPriorities = require('./plugins/plugin-priorities');
43
43
const applyOptionsCallback = require ( './utils/apply-options-callback' ) ;
44
44
const sharedEntryTmpName = require ( './utils/sharedEntryTmpName' ) ;
45
45
const copyEntryTmpName = require ( './utils/copyEntryTmpName' ) ;
46
- const getVueVersion = require ( './utils/get-vue-version' ) ;
47
46
const tmp = require ( 'tmp' ) ;
48
47
const fs = require ( 'fs' ) ;
49
48
const path = require ( 'path' ) ;
@@ -101,13 +100,6 @@ class ConfigGenerator {
101
100
alias : { }
102
101
} ;
103
102
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
-
111
103
if ( this . webpackConfig . usePreact && this . webpackConfig . preactOptions . preactCompat ) {
112
104
config . resolve . alias [ 'react' ] = 'preact-compat' ;
113
105
config . resolve . alias [ 'react-dom' ] = 'preact-compat' ;
You can’t perform that action at this time.
0 commit comments