Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

215
Views
How can I compile a number of typescript files so that they can be used in a <script> tag

I have a number of typescript classes that are in multiple files in a single directory. These files are modules, that is to say they are being used in a node project with import and export keywords. Is there a way I can compile these typescript files into a single javascript file so that I can include the compiled typescript classes in a single script tag, e.g.

<script src="typescriptOut.js></script>

My current tsconfig.json is:

{
    "compilerOptions": {
        "module": "system",
        "target": "ES6",
        "noImplicitAny": true,
        "removeComments": true,
        "preserveConstEnums": true,
        "outFile": "../client/physics/physics.js",
        "sourceMap": true
    },
    "include": [
        "**/*"
    ],
}

However, this throws an error when using the physics.js file which says that "System is not defined".

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!