google / closure-compiler-npm

Package for managing and documenting closure-compiler for use via npm

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Documentation could be clearer around module resolution

paulpopus opened this issue · comments

commented

Continuing the discussion from https://groups.google.com/g/closure-compiler-discuss/c/XjXfIQlCnfk

TL;DR of that thread
I found the documentation around the Closure-Compiler to be slightly confusing about node_module resolution, the compiler is very advanced so I assumed it will handle node_module resolution automatically and technically it can actually handle JS module resolution to some extent, however this wasn't clear from the documentation at all.

I think the documentation on https://github.com/google/closure-compiler-npm/blob/master/packages/google-closure-compiler/docs/gulp.md should be updated to specifically mention node_module resolution and the options the developer has with some examples.

I'll open a PR with this soon.

commented

PR created #182

We've updated the documentation on the main compiler wiki.