Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kyledecot/rollup
https://github.com/kyledecot/rollup
Last synced: 4 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/kyledecot/rollup
- Owner: kyledecot
- Created: 2024-07-24T18:23:52.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-07-24T18:36:01.000Z (6 months ago)
- Last Synced: 2024-07-24T21:18:18.900Z (6 months ago)
- Language: JavaScript
- Size: 12.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Rollup - WASM
This repository contains three "packages":
C -> B -> A
A is a wasm-bindgen package that has `a_bg.wasm`.
B is a React component package that uses a custom plugin to emit `a_bg.wasm` into `lib/a_bg.wasm` while also emitting a `lib/worker.js` file.
C is also a React component package that uses `` in it's `index.js`.The issue is that when building package C using `npm run build` the resulting `lib` directory will not contain the `a_bg.wasm` file
```bash
./bin/setup.shcd ./packages/b
npm install
npm run build
cd -cd ./packages/c
npm install
npm run build
cd -
```
If you `ls -la ./packages/c/node_modules/b/lib` you'll see that there is indeed a a_bg.wasm file present however if you `ls -la ./packages/c/lib` there is no wasm file which breaks the worker