-
Run
npm ci
to install dependencies. -
Run
ng build --configuration=production
(with the defaultes2017
target intsconfig.json
). -
Observe the contents of the output
dist/angular-filename-hashing-bug-reproduction/scripts.{revhash_1}.js
file to betry{console.log()}catch(c){}
. -
Change the
compilerOptions.target
toes2019
(ores2020
ores2021
) fromes2017
intsconfig.json
. -
Run
ng build --configuration=production
. -
Observe the contents of the output
dist/angular-filename-hashing-bug-reproduction/scripts.{revhash_2}.js
file to betry{console.log()}catch{}
(different from the output from step 3). -
Observe that
revhash_1
equalsrevhash_2
.