Skip to content

alexjg/craco-wasm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 
 
 

Repository files navigation

craco-wasm

A craco plugin to add support for WASM modules to CRA apps.

Usage

yarn add craco-wasm

In craco.config.js

const cracoWasm = require("craco-wasm")

module.exports = {
    plugins: [cracoWasm()]
}

How?

create-react-app is based on Webpack 5, which has experimental support for WASM modules. In order to enable this support this plugin does two things:

  1. Enable the experiments.asyncWebAssembly webpack config
  2. Add /\.wasm$/ to the list of files which are not processed by the file-loader in the CRA webpack config

About

craco plugin to add support for WASM modules

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published