Skip to content

Commit f5171d7

Browse files
committed
6.1.0 release
2 parents 18d2fa5 + 0b8460a commit f5171d7

File tree

5 files changed

+52248
-67974
lines changed

5 files changed

+52248
-67974
lines changed

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
## 6.1.0 (February 21, 2024)
2+
3+
* Removed `getCSSModuleLocalIdent` to fix unexpected behaviors in css-loader.
4+
* Removed eslint related modules.
5+
6+
### pack
7+
8+
* Fixed `--framework` option to use strict lint rules.
9+
* Fixed webpack config to generate unique class names in module css.
10+
111
## 6.0.4 (December 22, 2023)
212

313
### template

commands/pack.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,7 @@ function api(opts = {}) {
258258
opts['content-hash'],
259259
opts.isomorphic,
260260
!opts.animation,
261+
opts.framework,
261262
opts['ilib-additional-path']
262263
);
263264

config/webpack.config.js

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ const ForkTsCheckerWebpackPlugin =
2323
const HtmlWebpackPlugin = require('html-webpack-plugin');
2424
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
2525
const CssMinimizerPlugin = require('css-minimizer-webpack-plugin');
26-
const getCSSModuleLocalIdent = require('react-dev-utils/getCSSModuleLocalIdent');
2726
const getPublicUrlOrPath = require('react-dev-utils/getPublicUrlOrPath');
2827
const ModuleNotFoundPlugin = require('react-dev-utils/ModuleNotFoundPlugin');
2928
const NodePolyfillPlugin = require('node-polyfill-webpack-plugin');
@@ -32,7 +31,7 @@ const TerserPlugin = require('terser-webpack-plugin');
3231
const {DefinePlugin, EnvironmentPlugin} = require('webpack');
3332
const {
3433
optionParser: app,
35-
cssModuleIdent: getSimpleCSSModuleLocalIdent,
34+
cssModuleIdent: getLocalIdent,
3635
GracefulFsPlugin,
3736
ILibPlugin,
3837
WebOSMetaPlugin
@@ -46,6 +45,7 @@ module.exports = function (
4645
contentHash = false,
4746
isomorphic = false,
4847
noAnimation = false,
48+
framework = false,
4949
ilibAdditionalResourcesPath
5050
) {
5151
process.chdir(app.context);
@@ -87,9 +87,6 @@ module.exports = function (
8787
const GENERATE_SOURCEMAP = process.env.GENERATE_SOURCEMAP || (isEnvProduction ? 'false' : 'true');
8888
const shouldUseSourceMap = GENERATE_SOURCEMAP !== 'false';
8989

90-
const getLocalIdent =
91-
process.env.SIMPLE_CSS_IDENT !== 'false' ? getSimpleCSSModuleLocalIdent : getCSSModuleLocalIdent;
92-
9390
// common function to get style loaders
9491
const getStyleLoaders = (cssLoaderOptions = {}, preProcessor) => {
9592
// Multiple styling-support features are used together, bottom-to-top.
@@ -569,7 +566,11 @@ module.exports = function (
569566
resolvePluginsRelativeTo: __dirname,
570567
// @remove-on-eject-begin
571568
baseConfig: {
572-
extends: [require.resolve('eslint-config-enact')],
569+
extends: [
570+
framework
571+
? require.resolve('eslint-config-enact/strict.js')
572+
: require.resolve('eslint-config-enact/index.js')
573+
],
573574
rules: {
574575
...(!hasJsxRuntime && {
575576
'react/jsx-uses-react': 'warn',

0 commit comments

Comments
 (0)