Skip to content

Instantly share code, notes, and snippets.

@GantMan
Created January 6, 2020 21:33
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save GantMan/867e1cfe5d53d132e1dcca8fb7767c98 to your computer and use it in GitHub Desktop.
Save GantMan/867e1cfe5d53d132e1dcca8fb7767c98 to your computer and use it in GitHub Desktop.
Adding a WASM loader for react-app-rewired
const path = require('path')
module.exports = function override(config, env) {
config.module.rules.push({
test: /\.wasm$/i,
type: 'javascript/auto',
use: [{ loader: 'file-loader' }]
})
return config
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment