nashorn-commonjs-modules icon indicating copy to clipboard operation
nashorn-commonjs-modules copied to clipboard

CommonJS modules support for Nashorn

Results 6 nashorn-commonjs-modules issues
Sort by recently updated
recently updated
newest added

I am trying to call a small library build with webpack2. It is configured to result in a es5, commonjs bundle. I am using nashorn-commonjs-module to import it by evaluating...

I have the following script: ``` var module1= require('./module1); var instance1= new module1.myclass1(); ... var module2= require('./module2); var instance2= new module2.myclass2(); ``` I pass the script to the engine (`eval`)...

Fixes #27 I'll need to do some more testing for this before merging.

I have a couple of simple modules that I'm trying to wrangle into Nashorn. One example is LoDash. If I include it as a Maven dependency via webjars: ``` org.webjars.npm...

This is really a question--what is the best/right way to use this Require module in a multi-threaded servlet environment?? So believing based on what I've read that the Nashorn engine...

I use this addition to serve .jsx files (as used by React.js) that first need to be transformed from .jsx to .js. I.e., I can't just rename them to .js....