Open DerThorsten opened 3 years ago
we are facing the problem that xeus_lua.js it not found
This part seems to be because xeus_lua.js
is not in lib
and webpack
doesn't find it. So we can reintroduce the copy-files
script make sure they are.
Do we need to change the import statement?
Also the wasm
file seems to be defined in the emscripten generated file like this:
Ideally webpack should be able to find it, so it can generate a URL to the asset automatically (with the public path).
I'm continuing in #6.
bevore I jused the CopyPlugin for the wasm file. Since webpack only looks for imports it is not touching the xeus_lua.wasm
string. (since there is nothing like import 'xeus_lua.wasm'
)
https://github.com/DerThorsten/jupyterlite/blob/65762755e33aa661a5f46f037eefb1c347aac06a/app/webpack.config.js#L268
Yes maybe we'll have to use the same approach for now.
Ideally we can find a way to tell webpack to find this wasm file, so it places it along the others under labextension/static
, and is able to locate it via a URL such as /lab/extensions/@jupyterlite/xeus-lua/static/12345.wasm
(since the extension will be loaded as a federated module).
I renamed the issue to "Bundle the wasm file" so we can come back to how to best handle the copy of the wasm file later.
now that we move the xeus lua related files to the asset dir via https://github.com/DerThorsten/jupyterlite_xeus_lua/blob/3a22e56672ef5aca0655fc64aaa39fac74e5b6a2/webpack.config.js#L4
we are facing the problem that xeus_lua.js it not found
@jtpio you mentioned:
@jtpio any hint on how to continue on that?
Do we need to change the import statement? https://github.com/DerThorsten/jupyterlite_xeus_lua/blob/3a22e56672ef5aca0655fc64aaa39fac74e5b6a2/src/worker.ts#L3
this is all a bit beyond my typescript / webpack competence ...