GJS vs Node.js incompatibilities


Let’s say I have a Node.js library that I want to run in the GJS environment. What should I look for to make sure it’s compatible with GJS? What Node.js stuff is definitely not compatible with GJS?

It’s not but you can make it easily work with it, with stuff like https://rollupjs.org/, https://webpack.js.org/ or https://browserify.org/ or any other similar technology.

You can find examples around since it’s not different than making a library available for a spidermonkey-based browser (e.g. firefox).

So modules (or whatever it’s called) aren’t supported?
I’m also interested in APIs not available in GJS but provided by Node.js

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.