🚀 DAY 5 OF LAUNCH WEEK: Introducing Socket Firewall Enterprise.Learn more →
Socket
Book a DemoInstallSign in
Socket

craco-wasm

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

craco-wasm

craco plugin to add support for WASM modules

latest
Source
npmnpm
Version
0.0.1
Version published
Weekly downloads
61
190.48%
Maintainers
1
Weekly downloads
 
Created
Source

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:

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

FAQs

Package last updated on 04 Oct 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts