Skip to content

Commit 900a0e2

Browse files
committed
refactor: Update README.md
1 parent c69ac81 commit 900a0e2

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ npm i babel-plugin-on-demand-import -D
107107
Then add it to your `.babelrc`:
108108

109109
```
110+
// v2
110111
{
111112
// ...
112113
"plugins": [
@@ -115,6 +116,17 @@ Then add it to your `.babelrc`:
115116
}]
116117
]
117118
}
119+
120+
// v3
121+
{
122+
// ...
123+
"plugins": [
124+
["on-demand-import" {
125+
"libraryName": "v2-datepicker",
126+
"libraryName": "lib/components"
127+
}]
128+
]
129+
}
118130
```
119131

120132
```

README_CN.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ npm i babel-plugin-on-demand-import -D
106106
修改 `.babelrc`:
107107

108108
```
109+
// v2
109110
{
110111
// ...
111112
"plugins": [
@@ -114,6 +115,17 @@ npm i babel-plugin-on-demand-import -D
114115
}]
115116
]
116117
}
118+
119+
// v3
120+
{
121+
// ...
122+
"plugins": [
123+
["on-demand-import" {
124+
"libraryName": "v2-datepicker",
125+
"libraryName": "lib/components"
126+
}]
127+
]
128+
}
117129
```
118130

119131
```

0 commit comments

Comments
 (0)