File tree Expand file tree Collapse file tree 2 files changed +24
-0
lines changed
Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -107,6 +107,7 @@ npm i babel-plugin-on-demand-import -D
107107Then 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```
Original file line number Diff line number Diff 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```
You can’t perform that action at this time.
0 commit comments