Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Devtool change and error handing #577

Merged
merged 2 commits into from Oct 27, 2016
Merged

Conversation

arunoda
Copy link
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
Contributor

wmonk commented Oct 27, 2016

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

@arunoda
Copy link
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
Contributor

wmonk commented Oct 27, 2016

Amazing, thanks so much for sorting this so quickly!

@nottoseethesun
Copy link

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

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

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.

None yet

5 participants