-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Closed
Labels
Description
I have seen client app code import Node.js modules, e.g.
import querystring from 'querystring';This will potentially import a huge library that will vary depending on the node version used to build the bundle. Bundle should not depend on the version of node used to build it.
This is hard to catch because it will just work until it suddenly stops with no way to traceback the issue in the code itself.
The rule should restrict import to only modules declared in package.json (or another strategy used to make sure that Node.js modules are not imported).
Reactions are currently unavailable