It isn't clear how to reference externs.
For example, having trouble with node core modules. Using the gulp plugin to attempt to compile a Node application which includes the following:
const http = require('http');
I get the following errors:
[00:45:29] source/Stats.js:2 (JSC_COMMONJS_MODULE_LOAD_ERROR)
[00:45:29] Failed to load module "http"
[00:45:29] const http = require('http');
Despite including the following flags:
processCommonJsModules: true,
externs: [{ path: './externs/http.js' }],
Where ./externs/http.js is from https://github.com/dcodeIO/node.js-closure-compiler-externs
Surely compiling a node app with core modules is a common use case. Could we include a brief example, or perhaps just an indicator of how to use common externs?
I would offer to contribute, but I really have no idea how to get this working...
Cheers!