I am looking to configure the TypeScript Compiler in such a way that it utilizes
node_modules/firebase/firebase.d.ts
for typechecking my code, and also includes node_modules/firebase/firebase.js
in the files where I import firebase functionalities. Although there are numerous tools available that can handle this task, I prefer to maintain a streamlined development environment.
In my tsconfig.json
file, I have specified "moduleResolution": "node"
, which successfully imports definitions and performs type checking as desired. Additionally, I have included "isolatedModules": true
with hopes of bundling the actual code into each target file. However, the resulting code does not bundle firebase.js as expected. Is there a compiler option such as "module"
that can achieve this, or should I incorporate something else?
If it is absolutely necessary to introduce another tool into my development process, what would be the simplest addition to tsc
that can bundle all JS files along with their dependencies into a single js file?