Skip to content

Commit

Permalink
doc(scope-plugin-options): Update Document.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Dec 29, 2021
1 parent 7dcc975 commit 0d9bec3
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions packages/scope-plugin-options/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,9 @@

This will modify the CRA ModuleScopePlugin plugin that prevents to import modules from outside the `src` directory, useful if you use a different directory.

This is the setting for the Plug-in `new ModuleScopePlugin`.

Prevents users from importing files from outside of src/ (or node_modules/).
This often causes confusion because we only process files within src/ with babel.
To fix this, we prevent you from importing files out of src/ -- if you'd like to,
please link the files into your node_modules/ and let module-resolution kick in.
Make sure your source files are compiled, as they will not be processed in any way.
This is the setting for the Plug-in `new ModuleScopePlugin`.

Prevents users from importing files from outside of src/ (or node_modules/). This often causes confusion because we only process files within src/ with babel. To fix this, we prevent you from importing files out of src/ -- if you'd like to, please link the files into your node_modules/ and let module-resolution kick in. Make sure your source files are compiled, as they will not be processed in any way.

### Installation

Expand Down

0 comments on commit 0d9bec3

Please sign in to comment.