![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
alta-vite-plugin-wasm
Advanced tools
Add WebAssembly ESM integration (aka. Webpack's `asyncWebAssembly`) to Vite and support `wasm-pack` generated modules.
Add WebAssembly ESM integration (aka. Webpack's asyncWebAssembly
) to Vite and support wasm-pack
generated modules.
For Vite 3.x (latest), please use 2.x version of this plugin (pure ESM, since Vite is pure ESM):
yarn add -D vite-plugin-wasm@^2
For Vite 2.x (latest), please use 1.x version of this plugin:
yarn add -D vite-plugin-wasm@^1
You also need the vite-plugin-top-level-await
plugin unless you target very modern browsers only (i.e. set build.target
to esnext
).
import wasm from "vite-plugin-wasm";
import topLevelAwait from "vite-plugin-top-level-await";
export default defineConfig({
plugins: [
/**
* Since 2.x version of this plugin, the `filter` option has been removed.
*
* For 1.x (with Vite 2.x):
* By default ALL `.wasm` imports will be transformed to WebAssembly ES module.
* You can also set a filter (function or regex) to match files you want to transform.
* Other files will fallback to Vite's default WASM loader (i.e. You need to call `initWasm()` for them).
* ```js
* wasm({
* filter: /syntect_bg.wasm$/
* })
* ```
*/
wasm(),
topLevelAwait()
]
});
TypeScript typing is broken. Since we can't declare a module with Record<string, any>
as its named export map. Your import ... from "./module.wasm";
will still got Vite's bulit-in typing, but the transformed code is fine. So just use an asterisk import import * as wasmModule from "./module.wasm"
and type assertion (you have typing for your WASM files, right?).
FAQs
Add WebAssembly ESM integration (aka. Webpack's `asyncWebAssembly`) to Vite and support `wasm-pack` generated modules.
The npm package alta-vite-plugin-wasm receives a total of 1 weekly downloads. As such, alta-vite-plugin-wasm popularity was classified as not popular.
We found that alta-vite-plugin-wasm demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.