Skip to content

Commit

Permalink
[CHORE] Fixed error saying Canada/Pacific tz data is not found (#2856)
Browse files Browse the repository at this point in the history
Fixed locale issue
  • Loading branch information
simensma-fresh authored Dec 15, 2023
1 parent 70e7e48 commit 66fcd54
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 28 deletions.
32 changes: 16 additions & 16 deletions services/core-web/webpack.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,18 +80,18 @@ const commonConfig = merge([
REQUEST_HEADER: path.resolve(__dirname, "common/utils/RequestHeaders.js"),
GLOBAL_ROUTES: path.resolve(__dirname, "src/constants/routes.ts"),
}),
// Prevent moment locales to be bundled with the app
// to reduce app size
new webpack.IgnorePlugin({
resourceRegExp: /^\.\/locale$/,
contextRegExp: /moment$/,
}),
// Explicitly load timezone data for Canada and US
new MomentTimezoneDataPlugin({
startYear: 1900,
endYear: 2300,
matchCountries: ["CA", "US"],
}),
// // Prevent moment locales to be bundled with the app
// // to reduce app size
// new webpack.IgnorePlugin({
// resourceRegExp: /^\.\/locale$/,
// contextRegExp: /moment$/,
// }),
// // Explicitly load timezone data for Canada and US
// new MomentTimezoneDataPlugin({
// startYear: 1900,
// endYear: 2300,
// matchCountries: ["CA", "US"],
// }),
new MiniCssExtractPlugin(),
],
resolve: {
Expand All @@ -100,8 +100,8 @@ const commonConfig = merge([
...PATH_ALIASES,
...(process.env.NODE_ENV === "development"
? {
"react-dom": "@hot-loader/react-dom",
}
"react-dom": "@hot-loader/react-dom",
}
: {}),
// Use lodash-es that supports proper tree-shaking
lodash: "lodash-es",
Expand Down Expand Up @@ -246,8 +246,8 @@ const prodConfig = merge([
generateStatsFile: true,
statsOptions: { source: false },
}),
]
}
],
},
]);

module.exports = () => {
Expand Down
24 changes: 12 additions & 12 deletions services/minespace-web/webpack.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,18 +89,18 @@ const commonConfig = merge([
REQUEST_HEADER: path.resolve(__dirname, "common/utils/RequestHeaders.js"),
GLOBAL_ROUTES: path.resolve(__dirname, "src/constants/routes.ts"),
}),
// Prevent moment locales to be bundled with the app
// to reduce app size
new webpack.IgnorePlugin({
resourceRegExp: /^\.\/locale$/,
contextRegExp: /moment$/,
}),
// Explicitly load timezone data for Canada and US
new MomentTimezoneDataPlugin({
startYear: 1900,
endYear: 2300,
matchCountries: ["CA", "US"],
}),
// // Prevent moment locales to be bundled with the app
// // to reduce app size
// new webpack.IgnorePlugin({
// resourceRegExp: /^\.\/locale$/,
// contextRegExp: /moment$/,
// }),
// // Explicitly load timezone data for Canada and US
// new MomentTimezoneDataPlugin({
// startYear: 1900,
// endYear: 2300,
// matchCountries: ["CA", "US"],
// }),
new MiniCssExtractPlugin(),
],
resolve: {
Expand Down

0 comments on commit 66fcd54

Please sign in to comment.