-
-
Notifications
You must be signed in to change notification settings - Fork 375
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
Fix #87 #92
Conversation
src/lib/webpack-config.js
Outdated
include: /babel-helper$/, | ||
patterns: [{ | ||
regex: /throw\s+(new\s+)?(Type|Reference)?Error\s*\(/g, | ||
value: 'return;(' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
as per slack, we should make sure to retain the offset here via space padding:
value: s => `return;${new Array(s.length-8).join(' ')}(`
Hmm... Updated with @developit's suggestion for source-mapping (via character length). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Partten the intrusion, but I wanted to let you know I've confirmed this fix with a local build!
@jmadler 😆 I giggled. Glad to hear! @developit Your lead, good sir -- I'd feel strange merging own PR. |
@developit When can we expect fixes for firebase in preact-cli ?. Working on an existing app porting from react to preact ;) got stuck with firebase uglify issue :) |
@gokulkrishh today! |
@developit Cool. Thanks 😃 |
Created a new
webpack-plugin-replace
in order to move forward & close #87.I can add & update this plugin as needed 👍
As it is, I went through the reproduction steps & it has been fixed.