Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

218
Vistas
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
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda