surma / rollup-plugin-assemblyscript

A Rollup plugin that allows you to import AssemblyScript files and compiles them on-the-fly.
https://npm.im/rollup-plugin-assemblyscript
Apache License 2.0
74 stars 9 forks source link

Support Nodejs #9

Open aminya opened 3 years ago

aminya commented 3 years ago

rollup-plugin-rust supports Nodejs https://github.com/wasm-tool/rollup-plugin-rust/blob/6138501796e8d67ef21365f280c88bf60a8b512e/index.js#L273

fetch is not defined in Nodejs

StEvUgnIn commented 3 years ago

The author shows here how to configure the plugin with node.js https://github.com/surma/letterboxer/blob/master/rollup.config.js