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: README.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -118,7 +118,9 @@ externals({
118
118
```
119
119
Just like `exclude`, the `include` option can be a string, a regex or an array of those.
120
120
121
-
> Note: this plugin uses an exact match against your imports, so if your are using some path substitution in your code, eg.:
121
+
> Note 1 : falsy values in `include` and `exclude` are silently ignored. This allows for conditional constructs like so: `exclude: process.env.NODE_ENV === 'production' && /mydep/`.
122
+
123
+
> Note2 : this plugin uses an exact match against your imports, so if your are using some path substitution in your code, eg.:
122
124
```js
123
125
// in your code:
124
126
importsomethingfrom'@/mylib'// Say '@/' is mapped to some directory
0 commit comments