Skip to content
This repository has been archived by the owner on Aug 3, 2023. It is now read-only.

dont install wasm-pack for webpack type projects #1344

Merged
merged 4 commits into from
Jun 3, 2020

Conversation

EverlastingBugstopper
Copy link
Contributor

fixes #745

if folks want to use wasm-pack-plugin or some other tool, they should install and manage the necessary dependencies to do so. wrangler should only vendor what we know we need for the default use cases.

also we claimed to fix this in the 1.7.0 changelog and didn't actually do it

@ispivey
Copy link
Contributor

ispivey commented May 29, 2020

Whoo! 🎉

@xtuc
Copy link
Member

xtuc commented Jun 25, 2020

This was initally made to simplify using rustwasm with webpack, it's a breacking change but since nobody complained (as far as I know) I guess nobody uses it. I still think we should install it from users because it's simpler.

To avoid installing it for every webpack project, we can detect in wranglerjs if the webpack configuration uses the wasm-pack plugin

@EverlastingBugstopper
Copy link
Contributor Author

@xtuc - didn't we make wasm-pack-plugin do the installation for you instead? I dont think that logic belongs in wrangler

@xtuc
Copy link
Member

xtuc commented Jun 26, 2020

As far as I can remember wasm-pack plugin used to do the installation before we introduced it in wrangler and I'm unsure why we needed to.

@EverlastingBugstopper
Copy link
Contributor Author

🤷

@EverlastingBugstopper EverlastingBugstopper deleted the avery/dont-install-wasm-pack branch August 3, 2020 17:08
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

don't install wasm-pack for webpack projects
4 participants