File tree Expand file tree Collapse file tree 2 files changed +17
-5
lines changed Expand file tree Collapse file tree 2 files changed +17
-5
lines changed Original file line number Diff line number Diff line change 1
1
# Annotated webpack 4 config changelog
2
2
3
+ ## 1.1.1 - 2019-06-05
4
+ ### Changed
5
+ * Use destructuring for ESM module imports
6
+ * Added ` module.hot.accept() ` to the example entry point ` app.js `
7
+
3
8
## 1.1.0 - 2019-05-31
4
9
### Changed
5
10
* Switched over to using ` webpack-dashboard ` ` ^3.0.0 `
Original file line number Diff line number Diff line change
1
+ // Import our CSS
1
2
import styles from '../css/app.pcss' ;
2
3
3
4
// App main
4
5
const main = async ( ) => {
5
- // Import our CSS
6
- //const Styles = await import(/* webpackChunkName: "styles" */ '../css/app.pcss');
7
6
// Async load the vue module
8
- const Vue = await import ( /* webpackChunkName: "vue" */ 'vue' ) ;
7
+ const { default : Vue } = await import ( /* webpackChunkName: "vue" */ 'vue' ) ;
9
8
// Create our vue instance
10
- const vm = new Vue . default ( {
9
+ const vm = new Vue ( {
11
10
el : "#app" ,
12
11
components : {
13
12
'confetti' : ( ) => import ( /* webpackChunkName: "confetti" */ '../vue/Confetti.vue' ) ,
@@ -19,7 +18,15 @@ const main = async () => {
19
18
mounted ( ) {
20
19
} ,
21
20
} ) ;
21
+
22
+ return vm ;
22
23
} ;
24
+
23
25
// Execute async function
24
- main ( ) . then ( ( value ) => {
26
+ main ( ) . then ( ( vm ) => {
25
27
} ) ;
28
+
29
+ // Accept HMR as per: https://webpack.js.org/api/hot-module-replacement#accept
30
+ if ( module . hot ) {
31
+ module . hot . accept ( ) ;
32
+ }
You can’t perform that action at this time.
0 commit comments