javascript - Closure compiler required entry point "..." never provided -


i have js module depending on couple of other modules. want avoid using browserify in order build commonjs modules, because it’s badly gets on closure compiler minification. i’m trying compile module via closure compiler so:

java -jar compiler.jar --js=node_modules/object-id/index.js --js=node_modules/each-csv/index.js --js=node_modules/matches-selector/index.js --js=index.js --process_common_js_modules --common_js_entry_module=index.js 

everything error:

error - required entry point "module$each_csv" never provided  error - required entry point "module$matches_selector" never provided  error - required entry point "module$object_id" never provided  3 error(s), 0 warning(s) 

what proper way use processing of commonjs modules in closure compiler?

the best solution i’ve come non-wrapping commonjs merger - uncommonjs. merges dependable modules in proper order passed entry file single one-scoped bundle, resolving global vars interference, replacing module.exports , require declarations , removing duplicates, result ~27% better compressable via closure compiler browserify bundle.


Comments

Popular posts from this blog

java - How to specify maven bin in eclipse maven plugin? -

single sign on - Logging into Plone site with credentials passed through HTTP -

php - Why does AJAX not process login form? -