fix(compiler): look for flat module resources using declaration module path (#15367)
`ngc` would look for flat module resources relative to the flat module index. `ngc` now looks for flat module resources relative to the `.d.ts` file that declarates the component. Fixes #15221 PR Close #15367
This commit is contained in:

committed by
Miško Hevery

parent
7354949763
commit
90d2518d9a
@ -49,6 +49,12 @@ cp -v package.json $TMP
|
||||
# Generate the metadata for the third-party modules
|
||||
node ./node_modules/@angular/tsc-wrapped/src/main -p third_party_src/tsconfig-build.json
|
||||
|
||||
# Generate the the bundle modules
|
||||
node ./node_modules/@angular/tsc-wrapped/src/main -p flat_module/tsconfig-build.json
|
||||
|
||||
# Copy the html files from source to the emitted output
|
||||
cp flat_module/src/*.html node_modules/flat_module/src
|
||||
|
||||
./node_modules/.bin/ngc -p tsconfig-build.json --i18nFile=src/messages.fi.xlf --locale=fi --i18nFormat=xlf
|
||||
|
||||
./node_modules/.bin/ng-xi18n -p tsconfig-xi18n.json --i18nFormat=xlf --locale=fr
|
||||
|
Reference in New Issue
Block a user