-
-
Notifications
You must be signed in to change notification settings - Fork 17
Description
Hi, I have an app that requires the package gltf-transform to work. This package uses numerous wasm modules.
I configured copy-webpack-plugin so that the necessary wasm files are copied in the dist
directory. The configuration of copy webpack plugin looks like this :
patterns: [
{
from: "*.wasm",
context: "./node_modules/@squoosh/lib/build/"
},
"./node_modules/draco3d/draco_decoder.wasm",
"./node_modules/draco3dgltf/draco_decoder_gltf.wasm",
"./node_modules/draco3dgltf/draco_encoder.wasm",
],
Thus, I can properly launch the compiled app with node_modules/.bin/qode dist/index.js
. My problem is that once compiled, the app will exit immediately after launch.
I am on MacOS Monterey 12.2.1, Intel CPU. I checked the MacOS console but could find nothing relevant.
To reproduce, simply use the nodegui-starter, add the gltf-transform dependency, add the line import { Mode, toktx as ktx } from '@gltf-transform/cli'
to index.js (I made it JS to avoid TS problems at build time), add '.json' to resolve
section of webpack config, and try compiling and packing.