Comments (4)
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.
from xeus-lua-kernel.
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
from xeus-lua-kernel.
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).
from xeus-lua-kernel.
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.
from xeus-lua-kernel.
Related Issues (9)
- `build:labextension:dev` stage fails HOT 11
- how to setup kernel logo properly HOT 3
- Reducing the size of the wasm file HOT 5
- adding example notebook to build HOT 2
- Improve string substitution in the worker file HOT 1
- minify generated js files HOT 1
- SharedArrayBuffer HOT 5
- Next steps to package and distribute the kernel HOT 22
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xeus-lua-kernel.