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
We won't be adding anything that breaks Node resolution algorithm and tools that depend on it.
You can sorta emulate this behavior today by using NODE_PATH environment variable and running NODE_PATH=src npm start and other commands.
We are still discussing how to fix this in the best way for the future, but it won't be involving modifying Webpack config. We'll likely suggest using a monorepo setup with something like Lerna and symlinks, but details are being worked out.
I propose to add this:
in webpack.config.dev.js
The benefit of this is the following one:
Let say I have the following file structure:
let say I need to call views/App/index.js from src/index.js
With the current webpack.config.dev.js I have to do this:
and this is just a simple use case, I let you imagine if you have to call a component 3 or 4 levels before you should have something like:
such a pain, such a shame
with
it becomes now so easy and beautiful...
The text was updated successfully, but these errors were encountered: