File tree Expand file tree Collapse file tree 2 files changed +26
-2
lines changed Expand file tree Collapse file tree 2 files changed +26
-2
lines changed Original file line number Diff line number Diff line change 1- # vue-jsx-hot-loader
1+ # @ant-design-vue/vue-jsx-hot-loader
2+
23Tweak Vue components written in JSX in real time.
4+
5+ ## Usage
6+
7+ ``` js
8+ // webpack.config.js
9+ module .exports = {
10+ // ...
11+ module: {
12+ loaders: [
13+ // Enable HMR for JSX.
14+ {
15+ test: / \. jsx$ / ,
16+ use: [" babel-loader" , " @ant-design-vue/vue-jsx-hot-loader" ],
17+ },
18+ // Remember to use babel on the rest of the JS files.
19+ {
20+ test: / \. js$ / ,
21+ use: " babel-loader" ,
22+ },
23+ ],
24+ },
25+ };
26+ ```
Original file line number Diff line number Diff line change 11{
22 "name" : " @ant-design-vue/vue-jsx-hot-loader" ,
3- "version" : " 1.0 .0" ,
3+ "version" : " 0.1 .0" ,
44 "description" : " Tweak Vue components written in JSX in real time." ,
55 "main" : " dist/index.js" ,
66 "types" : " dist/index.d.ts" ,
You can’t perform that action at this time.
0 commit comments