I am trying to find a solution to enable default node.js libraries in java mode for GraalVm. From the documentation:
In Java mode, GraalVM JavaScript can execute any JavaScript module or package that does not depend on native Node.js built-in modules (such as 'fs', 'http', etc.) Modules can be loaded using a package bundler, or using the available built-in mechanisms for ES modules. CommonJS modules are supported in Java mode under an experimental flag.
as far as I understand, we can pack the script with everything we need e.g. webpack etc. But maybe someone has an experience to make it more similar to node.js execution when we can enable build-in module without any extra packaging? To run simple scripts but with power of build-in libs. Thanks