No way to access compilation output files
- Lenguaje dominante
- TypeScript
- Estrellas
- 27k
- Forks
- 11.8k
- Merge medio
- 14 h 23 min
- PR fusionados (30 d)
- 162
Descripción
### Command
build, serve
### Description
I have an esbuild plugin that is resposible to collect outputFiles after compilation (using `onEnd` hook with `result.outputFiles`).
When using application builder (esbuild) with custom plugins there is no way to access full list of outputFiles, only those emitted by `main` entrypoint compilation. There is no way to access additional files emited by angular builder, such as `polyfills`, assets, styles etc.
Previously, with using webpack plugin, i was able to get full list of outputFiles by using `processAssets` compilation hook.
I need to list emited files, as this is only way to get full names with filenames hash.
MY point is to build something like manifest of compilation result output files.
### Describe the solution you'd like
I would like to be able to access all compilation files by esbuild plugin.
### Describe alternatives you've considered
An alternative could be to access output files as an result of builder output, currently `build` command only returns `{success: true}` without information about output files.
Guía de contribución
Línea de trabajo
Comienza por las rutas de build y serve del application builder y el hook onEnd del plugin de esbuild; después, inspecciona cómo se expone actualmente result.outputFiles. Determina cómo el conjunto completo generado, incluidos polyfills, assets y styles, o el resultado del comando de build, debería exponer nombres de archivo con hashes. La tarea se considera completada cuando un consumidor de un plugin o builder puede acceder a todos los archivos de salida de la compilación para un manifest.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- angular, typescript
- Área
- build-system
- Tipo de issue
- Nueva funcionalidad
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Estado de actividad
- Tranquilo
- Claridad
- Bastante claro
- Aptitud para principiantes
- 48/100