I would like the TypeScript Compiler to use node_modules/firebase/firebase.d.ts
to typecheck my code and also bundle node_modules/firebase/firebase.js
into some of the files where I import things from firebase. I understand there are many options which will do this for me, but I'd like to keep a minimal dev environment.
I have set "moduleResolution": "node"
in my tsconfig.json
, which imports the definitions and type checks my code as I want. I've also added "isolatedModules": true
in an attempt to have it bundle the actual code into each of my targets, but the generated code does not bundle firebase.js as I would like. Is there a "module"
compiler option which will do this for me, or should I be adding something else?
If I absolutely need another tool in my dev process, what is the simplest addition to tsc
which will bundle each of my JS files + their dependencies into a single js file bundle?