production build failed "Module parse failed" with "export default class" syntax #14769
Labels
freq1: low
Only reported by a handful of users who observe it rarely
severity5: regression
type: bug/fix
Milestone
🐞 Bug report
Command (mark with an
x
)Is this a regression?
Yes, the previous version in which this bug was not present was: ....build-optimizer: 0.800.1 works fine.
Description
A clear and concise description of the problem...It seems #14585 breaks below syntax
after this change, it converts that code to
export default const
is not valid syntax.ng build --prod
failed with above code in parsing by acorn cause of that syntax.🔬 Minimal Reproduction
execute
ng build --prod
with this projecthttps://github.com/kawamoto/ng-export-default-class
🔥 Exception or Error
🌍 Your Environment
Anything else relevant?
The text was updated successfully, but these errors were encountered: