Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Can't integrate dependencies with WASM modules #171

Open
@AyymericArn

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /