Skip to content

Commit

Permalink
Revert "fix(@angular-devkit/build-angular): set public class fields a…
Browse files Browse the repository at this point in the history
…s properties (#24849)"

This reverts commit 04274af.

Closes: #25161
(cherry picked from commit 740610a)
  • Loading branch information
alan-agius4 authored and clydin committed May 8, 2023
1 parent a9d2001 commit ffbcc6b
Showing 1 changed file with 0 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -415,13 +415,6 @@ export async function getCommonConfig(wco: WebpackConfigOptions): Promise<Config
{
loader: require.resolve('../../babel/webpack-loader'),
options: {
assumptions: {
// Use `setPublicClassFields: true` to avoid decrease bundle sizes
// when targetting ES2022+ with `useDefineForClassFields: true`.
// This is because ervery property of the class will otherwise be wrapped in a `_defineProperty`.
// This is not needed for TypeScript as TS itself will emit the right declaration of class properties.
setPublicClassFields: true,
},
cacheDirectory: (cache.enabled && path.join(cache.path, 'babel-webpack')) || false,
aot: buildOptions.aot,
optimize: buildOptions.buildOptimizer,
Expand Down

0 comments on commit ffbcc6b

Please sign in to comment.