Skip to content

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