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

328
Visualizações
ES2015 vs ESM2015

I want to understand the difference between ES2015 and ESM2015. I know that ES2015 is the ES^ standards but recently while compiling my Angular application using ng build I got the following : Compiling @angular/core : es2015 as esm2015

I want to know why ESM2015? Is it minified ES2015 files?

over 4 years ago · Santiago Trujillo
2 Respostas
Responde à pergunta

0

According to the documentation for Angular Package Format:

Short for ECMAScript Modules. A file containing statements that import and export symbols. This is identical to the definition of modules in the ECMAScript spec.

over 4 years ago · Santiago Trujillo Relatório

0

When a project is compiled from es2015 to esm2015, like Compiling @angular/core : es2015 as esm2015

Basically it is still EcmaScript, but esm is based on modules "or packages", this allows to make some parts of the code independent from others.

Other differences between modules and standard scripts:

  • modules use strict mode automatically.
  • modules are deferred automatically (when are loading).
  • Modules are only executed once, even if they have been referenced in multiple tags.
  • Modules features are imported into the scope of a single script — they aren't available in the global scope.

more info here

over 4 years ago · Santiago Trujillo Relatório
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