Skip to content

Devtool change and error handing#577

Merged
arunoda merged 2 commits intomasterfrom
devtool-change-and-error-handing
Oct 27, 2016
Merged

Devtool change and error handing#577
arunoda merged 2 commits intomasterfrom
devtool-change-and-error-handing

Conversation

@arunoda
Copy link
Copy Markdown
Member

@arunoda arunoda commented Oct 27, 2016

With this we are changing the webpack devtool to eval in the development and we no longer use source map.

Source map with babel is always problematic and CRA don't use it.
Also, it takes time longer than other eval.

We also can't use cheap sourcemap devtools because of Chrome has some bugs on it.

We also cleanup some source map based error enhancements we did and how we handle errors.

Now we don't use source-map and all the helpers used for that.
Source map is slow and cheap source maps doesn't work well in Chrome.
We also remove error enhancements which is also based on source-maps.

Additionally, we now simplified the client side error handling
and always throw the actual error so we can check it from the console.
@arunoda arunoda merged commit d0fd010 into master Oct 27, 2016
@wmonk
Copy link
Copy Markdown
Contributor

wmonk commented Oct 27, 2016

@arunoda do you know when this might make it into NPM?

@arunoda
Copy link
Copy Markdown
Member Author

arunoda commented Oct 27, 2016

Today. In few hours.

@arunoda arunoda deleted the devtool-change-and-error-handing branch October 27, 2016 10:04
@wmonk
Copy link
Copy Markdown
Contributor

wmonk commented Oct 27, 2016

Amazing, thanks so much for sorting this so quickly!

@nottoseethesun
Copy link
Copy Markdown

nottoseethesun commented Mar 14, 2017

inline-source-map is working well for me with react-storybook under Babel; it is not slow and imo it is very much well-worth it despite the identifier renaming (e.g., this to _this2. At least, I can see my source code instead of a ton of compiled code/i-code.

Would it be possible to allow this to be configurable with a build switch for the storybook, so that users don't have to change the node_modules source?

@shilman shilman added the misc label May 27, 2017
@silvenon
Copy link
Copy Markdown

@nottoseethesun I believe you can override this in full control mode.

@nx-cloud
Copy link
Copy Markdown

nx-cloud bot commented Jun 4, 2025

View your CI Pipeline Execution ↗ for commit dbd4145

Command Status Duration Result
nx run-many -t build --parallel=3 ✅ Succeeded 53s View ↗

☁️ Nx Cloud last updated this comment at 2025-09-16 09:35:22 UTC

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants