I am converting a project from ES6 to Typescript. The TSConfig file sets the following options:
{
"compilerOptions": {
"target": "es5",
"module": "system",
"out": "qqq.js",
"allowJs": true,
}
In my code, I import NPM modules living in node_modules
. This was also what I did prior to using Typescript.
import React from 'react'; // This is an NPM module.
// . . .
Running the typescript compiler produces an almost usable *.js bundle, but it is missing all of the NPM modules.
How can I configure Typescript to include all of my NPM dependencies (not just local files) when building a System.js bundle?