Absolute vs Relative Imports and compile time in dev server #12897
Unanswered
dallenbaldwin
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
For context, I'm on CRA 5.0.0 and react 17.0.1
I recently moved lots of imports to use absolute imports since they are easier to refactor, look better, etc.
The only issue is it seems like webpack takes much longer to initially compile, and compile any changes thereafter while the dev server is running. I'm talking 120,000 milliseconds.
Am I looking at the wrong thing or does webpack just have a really hard time with absolute imports?
Beta Was this translation helpful? Give feedback.
All reactions