Skip to content

bump webassemblyjs - #7732

Merged
sokra merged 10 commits into
webpack:masterfrom
xtuc:chore-bump-webassemblyjs11
Sep 10, 2018
Merged

sokra merged 10 commits into
webpack:masterfrom
xtuc:chore-bump-webassemblyjs11

Conversation

@xtuc

@xtuc xtuc commented Jul 16, 2018

Copy link
Copy Markdown
Contributor

What kind of change does this PR introduce?

Did you add tests for your changes?

Does this PR introduce a breaking change?

What needs to be documented once your changes are merged?

ref xtuc/webassemblyjs#407

@webpack-bot

Copy link
Copy Markdown
Contributor

For maintainers only:

  • This need to be documented (issue in webpack/webpack.js.org will be filed when merged)

@webpack-bot

Copy link
Copy Markdown
Contributor

Thank you for your pull request! The most important CI builds succeeded, we’ll review the pull request soon.

@xtuc

xtuc commented Jul 16, 2018

Copy link
Copy Markdown
Contributor Author

Please do not merge this yet.

@xtuc xtuc changed the title [WIP] bump webassemblyjs bump webassemblyjs Jul 23, 2018
@sokra

sokra commented Jul 25, 2018

Copy link
Copy Markdown
Member

Ping me when this is ready to merge

const WebAssemblyUtils = require("./WebAssemblyUtils");
const { RawSource } = require("webpack-sources");

const { shrinkPaddedLEB128 } = require("@webassemblyjs/wasm-opt");

This comment was marked as outdated.

@xtuc

xtuc commented Jul 25, 2018

Copy link
Copy Markdown
Contributor Author

Alright @sokra, lgtm

Comment thread yarn.lock Outdated
"@webassemblyjs/wasm-gen" "1.5.13"
"@webassemblyjs/wasm-parser" "1.5.13"
debug "^3.1.0"
"@babel/cli" "^7.0.0-beta.54"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

babel should be a devDependency

Comment thread yarn.lock Outdated
version "1.7.4"
resolved "https://registry.yarnpkg.com/@webassemblyjs/ieee754/-/ieee754-1.7.4.tgz#b58c92c364a954a027d7415adc1bf10dd74d7ac5"
dependencies:
"@xtuc/buffer" "^5.2.2"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

node.js has a buildin Buffer.

This seem to be for browser build only. Bundlers usually bring their own polyfills for Buffer. Polyfilling is not the responsibility of a library. If it's only needed to local building of a browser bundle, make it a dev dependency.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, that's right. Let me remove it.

Comment thread yarn.lock Outdated
dependencies:
"@babel/highlight" "7.0.0-beta.54"

"@babel/core@^7.0.0-beta.54":

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should not be included

Comment thread yarn.lock
"@webassemblyjs/ast" "1.5.13"
"@webassemblyjs/wast-parser" "1.5.13"
long "^3.2.0"
"@xtuc/[email protected]":

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Weird that you are forking packages just for ESM. This seems unnecessary to me. Why not using the original package?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah the issue is that some bundler (Rollup) won't bundle any cjs require, so I had to ESM'ify some dependecies.

For now I preferred forking them to avoid loosing my time merging it upstream, but that's definitely the plan. Is that a blocker for this PR?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rollup has a commonjs plugin

@xtuc xtuc Aug 7, 2018 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sokra I submited PRs the upstream repositories. Would you mind removing them in a following PR? so we can fix the current issues in Webpack. If that's ok to you i'll update the PR to be ready to be merged.

@19h

19h commented Aug 27, 2018

Copy link
Copy Markdown

Please merge this soon after @xtuc considers it final; the current implementation actively corrupts binaries in certain circumstances. (wasm-bindgen/wasm-bindgen#753)

@sokra sokra left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@xtuc/long should eventually merged into upstream, but we can use it for now.

@xtuc

xtuc commented Sep 10, 2018

Copy link
Copy Markdown
Contributor Author

Please let me update webassemblyjs before merging this.

@sokra

sokra commented Sep 10, 2018

Copy link
Copy Markdown
Member

I updated it to 1.7.5

@sokra

sokra commented Sep 10, 2018

Copy link
Copy Markdown
Member

Do you want to cut a new release?

@xtuc

xtuc commented Sep 10, 2018

Copy link
Copy Markdown
Contributor Author

Ah cool thanks, yeah I just released 1.7.6 (mostly changes to the interpreter, which is not used here).

@webpack-bot

Copy link
Copy Markdown
Contributor

@xtuc Thanks for your update.

I labeled the Pull Request so reviewers will review it again.

@sokra Please review the new changes.

@sokra
sokra merged commit de85978 into webpack:master Sep 10, 2018
@sokra

sokra commented Sep 10, 2018

Copy link
Copy Markdown
Member

Thanks

@xtuc
xtuc deleted the chore-bump-webassemblyjs11 branch September 10, 2018 15:31
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