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

Add support for loading WebAssembly and ES Modules #2819

Merged
merged 1 commit into from
Nov 26, 2018

Conversation

ScreamZ
Copy link
Contributor

@ScreamZ ScreamZ commented Oct 26, 2018

Hello,

It is pretty common to see .wasm and .mjs files nowadays, some library start using them and this break by default in vue-cli without extending like this.

This pull request add support for those kind of files out-of-the-box.

vue.config.js

module.exports = {
  chainWebpack: config => config.resolve.extensions.prepend('.mjs').prepend('.wasm')
}

Do not hesitate to ping me if you have any questions / need something.

Regards

@haoqunjiang
Copy link
Member

haoqunjiang commented Oct 27, 2018

As a side note: jest currently does not support these extensions (jestjs/jest#4842). We should document it somewhere.

See also facebook/create-react-app#5258 (comment)

@ScreamZ
Copy link
Contributor Author

ScreamZ commented Oct 27, 2018

@sodatea What do you think of here ?

@haoqunjiang
Copy link
Member

@ScreamZ Looks good to me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants