Skip to content

Commit

Permalink
fix: try to add the config to go back on 6.x behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
jmfrancois committed Aug 27, 2024
1 parent 54cd1de commit c096b88
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/theme/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ module.exports = (env, argv) => {
options: {
importLoaders: 3,
sourceMap: true,
modules: {
namedExport: false,
},
},
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,15 @@ function getCommonStyleLoaders(enableModules, isEnvDevelopmentServe) {
const sourceMap = true;
let cssOptions = {
sourceMap,
modules: {
namedExport: false,
},
};
if (enableModules) {
cssOptions = {
sourceMap,
modules: {
namedExport: false,
localIdentName: '[name]__[local]___[hash:base64:5]',
},
importLoaders: 1,
Expand Down

0 comments on commit c096b88

Please sign in to comment.