docs: fix transpile pattern for Vue CLI 3

This commit is contained in:
Justineo
2018-09-25 17:44:04 +08:00
parent 0887a33b45
commit d784d83995
2 changed files with 4 additions and 4 deletions

View File

@ -50,8 +50,8 @@ For **Vue CLI 3+**, add `vue-echarts` and `resize-detector` into `transpileDepen
// vue.config.js
module.exports = {
transpileDependencies: [
/\bvue-echarts\b/,
/\bresize-detector\b/
/\/node_modules\/vue-echarts\//,
/\/node_modules\/resize-detector\//
]
}
```

View File

@ -54,8 +54,8 @@ Vue.component('v-chart', ECharts)
// vue.config.js
module.exports = {
transpileDependencies: [
/\bvue-echarts\b/,
/\bresize-detector\b/
/\/node_modules\/vue-echarts\//,
/\/node_modules\/resize-detector\//
]
}
```