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

192
Visualizações
Angular Build creating files twice

Im having an issue with a specific project Im basing on a template I purchased for an Administration Panel.

When I build the bundle (which I did just to see its size) Im getting the following files and sizes

enter image description here

This template had dozens of different components, which I got rid of, but I still have the following issues:

  1. main is being created twice, so does runtime and polyfills. My "target" at tsconfig is "es2017",

  2. I've deleted all "nested" routes, but I still have traces of Lazy Chunk files. Is there anywhere I can set "not" to use lazy load concept?

I believe the problem is at a tsconfig.json level but Im unable to identify it.

{
  "compileOnSave": false,
  "compilerOptions": {
    "baseUrl": "./",
    "outDir": "./dist/out-tsc",
    "forceConsistentCasingInFileNames": true,
    "strict": true,
    "noImplicitReturns": false,
    "strictPropertyInitialization": false,
    "noFallthroughCasesInSwitch": true,
    "sourceMap": true,
    "declaration": false,
    "downlevelIteration": true,
    "experimentalDecorators": true,
    "moduleResolution": "node",
    "importHelpers": true,
    "target": "es2017",
    "module": "es2020",
    "lib": [
      "es2018",
      "dom"
    ],
    "noImplicitAny": false,
  },
  "angularCompilerOptions": {
    "enableI18nLegacyMessageIdFormat": false,
    "strictInjectionParameters": false,
    "strictInputAccessModifiers": false,
    "strictTemplates": false
  }
}

Thanks for the help.

Danielle.

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

0

For the duplicated files issue, change:

"target": "es2017",

to

"target": "es5",

On your tsconfig.json

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