Hello,
I tried to “compile” a MeteorJS app by bundling it with demeteorizer (which calls the ‘meteor build’ command) and then running enclosejs to compile it to native code.
But this doesn’t work as expected. When I’m trying to compile the
demeteorized package, errors occure due to the fact that only directly
accessed scripts can be packed.
...\test_bundled\programs\server\boot.js
warning Cannot resolve 'fullPath'
Use a string literal as argument for 'require', or leave it
as is and specify the resolved file name in 'scripts' option.
That means, that enclosejs can only add dependencies to the compiled
application which are directly accessed (this is also mentioned in the
docs). A method which calls require() based on a variable doesn’t work.
But the bundled Meteor package only works like that (Npm.depends()).
Is there any other way to “compile” a MeteorJS application to prevent the source-code being accessible?
Thank you in advance!