Test module scoping (#2198)

* Correct readme

* Add tests

* Update README.md
This commit is contained in:
Joe Haddad
2017-05-17 14:52:55 -05:00
committed by GitHub
parent ee850f5822
commit c27d765014
2 changed files with 34 additions and 5 deletions

View File

@@ -34,7 +34,7 @@ var publicUrl = '/my-custom-url';
module.exports = {
output: {
// ...
publicPath: publicUrl + '/'
publicPath: publicUrl + '/'
},
// ...
plugins: [
@@ -68,10 +68,14 @@ var ModuleScopePlugin = require('react-dev-utils/ModuleScopePlugin');
module.exports = {
// ...
plugins: [
new ModuleScopePlugin(paths.appSrc),
resolve: {
// ...
],
plugins: [
new ModuleScopePlugin(paths.appSrc),
// ...
],
// ...
},
// ...
}
```
@@ -132,7 +136,7 @@ console.log('Just cleared the screen!');
#### `eslintFormatter(results: Object): string`
This is our custom ESLint formatter that integrates well with Create React App console output.
This is our custom ESLint formatter that integrates well with Create React App console output.<br>
You can use the default one instead if you prefer so.
```js