File tree Expand file tree Collapse file tree 3 files changed +19
-1
lines changed Expand file tree Collapse file tree 3 files changed +19
-1
lines changed Original file line number Diff line number Diff line change 63
63
"prettier-eslint-check" : " ^1.0.1" ,
64
64
"prettier-eslint-cli" : " ^4.7.1" ,
65
65
"sass-loader" : " ^7.0.3" ,
66
+ "vue-jsx-hot-loader" : " ^1.4.0" ,
66
67
"vue-svg-loader" : " ^0.5.0" ,
67
68
"vue-template-compiler" : " ^2.5.16" ,
68
69
"vue-tsx-support" : " ^2.0.1"
Original file line number Diff line number Diff line change @@ -6,6 +6,15 @@ const path = require('path');
6
6
module . exports = {
7
7
css : { extract : false } ,
8
8
chainWebpack : ( config ) => {
9
+ if ( process . env . NODE_ENV !== 'production' ) {
10
+ config . module
11
+ . rule ( 'tsx' )
12
+ . test ( / \. t s x $ / )
13
+ . use ( 'vue-jsx-hot-loader' )
14
+ . before ( 'babel-loader' )
15
+ . loader ( 'vue-jsx-hot-loader' ) ;
16
+ }
17
+
9
18
// https://github.com/mozilla-neutrino/webpack-chain#config-output-shorthand-methods
10
19
config . output
11
20
. libraryExport ( 'default' ) ; // prettier-ignore
Original file line number Diff line number Diff line change 6765
6765
range-parser "~1.2.0"
6766
6766
statuses "~1.4.0"
6767
6767
6768
- serialize-javascript@^1.4.0 :
6768
+ serialize-javascript@^1.4.0, serialize-javascript@^1.5.0 :
6769
6769
version "1.5.0"
6770
6770
resolved "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-1.5.0.tgz#1aa336162c88a890ddad5384baebc93a655161fe"
6771
6771
@@ -7753,6 +7753,14 @@ vue-hot-reload-api@^2.3.0:
7753
7753
version "2.3.0"
7754
7754
resolved "https://registry.npmjs.org/vue-hot-reload-api/-/vue-hot-reload-api-2.3.0.tgz#97976142405d13d8efae154749e88c4e358cf926"
7755
7755
7756
+ vue-jsx-hot-loader@^1.4.0 :
7757
+ version "1.4.0"
7758
+ resolved "http://registry.npm.taobao.org/vue-jsx-hot-loader/download/vue-jsx-hot-loader-1.4.0.tgz#38014b6cac81bdc290f16ca1f4e0e68306542bd8"
7759
+ dependencies :
7760
+ hash-sum "^1.0.2"
7761
+ lodash "^4.17.10"
7762
+ serialize-javascript "^1.5.0"
7763
+
7756
7764
vue-loader@^15.2.4 :
7757
7765
version "15.2.6"
7758
7766
resolved "https://registry.npmjs.org/vue-loader/-/vue-loader-15.2.6.tgz#4ad4e56a0ca1fd89ebc4220f9e3bd4723097b397"
You can’t perform that action at this time.
0 commit comments