diff --git a/README.md b/README.md index 063e600..02b89d0 100644 --- a/README.md +++ b/README.md @@ -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\// ] } ``` diff --git a/README.zh_CN.md b/README.zh_CN.md index 13a7129..90f1390 100644 --- a/README.zh_CN.md +++ b/README.zh_CN.md @@ -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\// ] } ```