I recently downloaded the Angular CLI
(@angular/cli 9.0.1). I then proceeded to create a new application so that I could create a new Angular Element, package it up, and use it in another application.
After following a few blogs, the final step of every blog I came across all talk about creating a single JS file from the generated files dropped under the dist/ folder. For example: https://blog.bitsrc.io/using-angular-elements-why-and-how-part-1-35f7fd4f0457
Then using the cat command, we are concatenating the runtime.js, polyfills.js, scripts.js, and main.js files from the dist/angular-app folder into a angularapp.js file inside the preview folder.
Running ng build angular-app --prod --output-hashing=none
instead seems to produce files named:
- main-es5.js
- main-es2015.js
- polyfills-es5.js
- polyfills-es2015.js
- runtime-es5.js
- runtime-es2015.js
I scoured every single file that had the terms es5 and es2015 and changed it to es6, but it still produced the same es5 and es2015 file names. What am I doing wrong here?