We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 322681c commit addbb01Copy full SHA for addbb01
packages/react-dev-utils/README.md
@@ -56,6 +56,26 @@ module.exports = {
56
}
57
```
58
59
+
60
+#### `new ModuleScopePlugin(appSrc: string)`
61
62
+This Webpack plugin ensures that relative imports from app's source directory don't reach outside of it.
63
64
+```js
65
+var path = require('path');
66
+var ModuleScopePlugin = require('react-dev-utils/ModuleScopePlugin');
67
68
69
+module.exports = {
70
+ // ...
71
+ plugins: [
72
+ new ModuleScopePlugin(paths.appSrc),
73
74
+ ],
75
76
+}
77
+```
78
79
#### `new WatchMissingNodeModulesPlugin(nodeModulesPath: string)`
80
81
This Webpack plugin ensures `npm install <library>` forces a project rebuild.<br>
0 commit comments