Skip to content

Commit

Permalink
fix: add as-is to the webpack config
Browse files Browse the repository at this point in the history
  • Loading branch information
jmfrancois committed Aug 28, 2024
1 parent eb55ea5 commit ee5a127
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/icons/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ module.exports = {
url: false,
modules: {
namedExport: false,
exportLocalsConvention: 'as-is',
},
},
},
Expand Down
1 change: 1 addition & 0 deletions packages/theme/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ module.exports = (env, argv) => {
sourceMap: true,
modules: {
namedExport: false,
exportLocalsConvention: 'as-is',
},
},
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,15 @@ function getCommonStyleLoaders(enableModules, isEnvDevelopmentServe) {
sourceMap,
modules: {
namedExport: false,
exportLocalsConvention: 'as-is',
},
};
if (enableModules) {
cssOptions = {
sourceMap,
modules: {
namedExport: false,
exportLocalsConvention: 'as-is',
localIdentName: '[name]__[local]___[hash:base64:5]',
},
importLoaders: 1,
Expand Down

0 comments on commit ee5a127

Please sign in to comment.