mirror of
https://github.com/ecomfe/vue-echarts.git
synced 2025-08-17 22:19:03 +08:00
docs: fix transpile pattern for Vue CLI 3
This commit is contained in:
@ -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\//
|
||||
]
|
||||
}
|
||||
```
|
||||
|
@ -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\//
|
||||
]
|
||||
}
|
||||
```
|
||||
|
Reference in New Issue
Block a user