-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Switch from browserify
to webpack
in order to be able to use most recent ES modules & allow JavaScript syntax beyond ES5
#6355
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
Merged
Changes from 17 commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
dc23266
switch from browserify to webpack & convert es6 to es5
archmoj 834d411
skip no new-func for now
archmoj 6b5b4c4
fix minified custom bundle script
archmoj 2ddf5d6
improve handling of webpack when stats.error is empty but hasErrors
archmoj 9818452
use webpack to generate strict regl code
archmoj 047fda8
install raw-loader - uninstall browserify
archmoj bbf19c1
use ify-loader and raw-loader to compile glslify
archmoj 4cdc04b
configuration for bundling stackgl using webpack
archmoj 524f24d
bundle stackgl using webpack
archmoj 3c42b19
ignore LICENSE.txt output files in dist
archmoj 3a50892
replace webpack hasErrors calls - bug creates long logs
archmoj 0abfdac
fix & update bundle options
archmoj addc012
delete tasks/util/strict_d3.js
archmoj d8161fb
remove watch script & delete tasks/watch.js
archmoj 18d0bf3
create server & open browser after the first bundle
archmoj 06226c3
pngjs is used by pixelmatch which is dev-dep
archmoj 9fc5987
no need for buffer & asser fallbacks
archmoj d5a618c
Revert "skip no new-func for now"
archmoj 937d65c
fixup webpack error handling
archmoj d2d03c0
no-new-func warn on all plotly.js outpus
archmoj 7a289c5
revise no-new-func tests
archmoj fab0628
no longer need to run unexpected chars tests on CI which is slow
archmoj 3b3211f
update BUILDING.md
archmoj ebc6530
update CONTRIBUTING.md
archmoj 2cca25f
update README.md
archmoj ebd130e
draft log for PR 6355
archmoj 458921f
use development mode and devtool option to improve debugging experience
archmoj File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,8 @@ build/* | |
!build/plotcss.js | ||
!build/README.md | ||
|
||
dist/*.LICENSE.txt | ||
|
||
npm-debug.log* | ||
*.sublime* | ||
*~ | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Ideally even the test build would be minified, to give us further confidence we're testing the behavior of the real bundle, plus a sourcemap. Right now with no sourcemap all I see in the test dashboard is the single huge unminified bundle - all the code is there unmodified but it'd be a pain to connect it back to the source files during debugging.
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.
The debugging is addressed in 458921f.
Now using development
mode
, the bundle content is different from production mode; but it builds & rebuilds faster.This should be good for now. And we could further improve this configuration.
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.
That'll work - what you see in the debugger isn't quite the same as the source files - it's been reformatted a bit and the require statements are transformed - but it's pretty close and easy to move from one to another 😄