Skip to content

Commit

Permalink
Merge pull request #149 from terra-money/bridge-v2
Browse files Browse the repository at this point in the history
Bridge v2
  • Loading branch information
alecande11 authored Apr 12, 2022
2 parents daba37c + 7826c2a commit a8b0e99
Show file tree
Hide file tree
Showing 80 changed files with 3,066 additions and 1,346 deletions.
21 changes: 21 additions & 0 deletions config-overrides.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
const path = require('path')

module.exports = function override (config, env) {
const wasmExtensionRegExp = /\.wasm$/
config.resolve.extensions.push('.wasm')
config.module.rules.forEach(rule => {
(rule.oneOf || []).forEach(oneOf => {
if (oneOf.loader && oneOf.loader.indexOf('file-loader') >= 0) {
oneOf.exclude.push(wasmExtensionRegExp)
}
})
})

config.module.rules.push({
test: wasmExtensionRegExp,
include: path.resolve(__dirname, 'src'),
use: [{ loader: require.resolve('wasm-loader'), options: {} }]
})

return config
}
Loading

0 comments on commit a8b0e99

Please sign in to comment.