Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

221
Visualizações
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 à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda