Skip to content

LostInBrittany/example-componentizeJS-with-external-deps

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Example of using external dependencies on ComponentizeJS by pre-bundling with RollupJS

Building the example

To build the example, use:

npm run build

Running the Component in Node.js

To run the component in Node.js, we need to first transpile the component with jco:

npx jco transpile dist/hello-world.wasm -o dist --map 'wasi-*=@bytecodealliance/preview2-shim/*'

To test the component:

node -e "import('./dist/hello-world.js').then(m => console.log(m.hello('Horacio')))"

About

An example of ComponentizeJS with external JS libs as dependenciess

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published