1
0
mirror of https://github.com/home-assistant/frontend.git synced 2025-12-24 04:39:01 +00:00

Refactor Intl polyfills and remove from ES5 entrypoints (#16349)

This commit is contained in:
Steve Repsher
2023-05-04 09:49:56 -04:00
committed by GitHub
parent f185e886c3
commit d2321b535c
12 changed files with 148 additions and 152 deletions

View File

@@ -132,6 +132,17 @@ const createWebpackConfig = ({
),
path.resolve(paths.polymer_dir, "src/util/empty.js")
),
// See `src/resources/intl-polyfill-legacy.ts` for explanation
!latestBuild &&
new webpack.NormalModuleReplacementPlugin(
new RegExp(
path.resolve(paths.polymer_dir, "src/resources/intl-polyfill.ts")
),
path.resolve(
paths.polymer_dir,
"src/resources/intl-polyfill-legacy.ts"
)
),
!isProdBuild && new LogStartCompilePlugin(),
].filter(Boolean),
resolve: {