You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: website/src/pages/docs/babel-plugin.mdx
+25-1
Original file line number
Diff line number
Diff line change
@@ -81,7 +81,31 @@ On client side, the two code are completely compatible.
81
81
82
82
Please note that babel must not be configured [to strip comments](https://babeljs.io/docs/en/options#comments), since the chunk name is defined in a comment.
83
83
84
-
## Loadable detection
84
+
## Loadable Configuration (beta)
85
+
> available since 5.16.0
86
+
87
+
Sometimes you need to wrap loadable with your own custom logic. There are many use cases for it, from injecting telemetry to hiding external libraries behind facade.
88
+
By default `loadable-components` are configured to transform dynamic imports used only inside loadable helpers, but can be configured to instrument any other function of your choice.
> Please dont use this feature and prefer Loadable Configuration instead
85
109
86
110
The detection of a loadable component is based on the keyword "loadable". It is an opinionated choice, it gives you flexibility but it could also be restrictive.
0 commit comments