Created
January 6, 2020 21:33
-
-
Save GantMan/867e1cfe5d53d132e1dcca8fb7767c98 to your computer and use it in GitHub Desktop.
Adding a WASM loader for react-app-rewired
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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