Skip to content

Commit

Permalink
6.1.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
enact-bot committed Feb 21, 2024
2 parents 18d2fa5 + 0b8460a commit f5171d7
Show file tree
Hide file tree
Showing 5 changed files with 52,248 additions and 67,974 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
## 6.1.0 (February 21, 2024)

* Removed `getCSSModuleLocalIdent` to fix unexpected behaviors in css-loader.
* Removed eslint related modules.

### pack

* Fixed `--framework` option to use strict lint rules.
* Fixed webpack config to generate unique class names in module css.

## 6.0.4 (December 22, 2023)

### template
Expand Down
1 change: 1 addition & 0 deletions commands/pack.js
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,7 @@ function api(opts = {}) {
opts['content-hash'],
opts.isomorphic,
!opts.animation,
opts.framework,
opts['ilib-additional-path']
);

Expand Down
13 changes: 7 additions & 6 deletions config/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ const ForkTsCheckerWebpackPlugin =
const HtmlWebpackPlugin = require('html-webpack-plugin');
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
const CssMinimizerPlugin = require('css-minimizer-webpack-plugin');
const getCSSModuleLocalIdent = require('react-dev-utils/getCSSModuleLocalIdent');
const getPublicUrlOrPath = require('react-dev-utils/getPublicUrlOrPath');
const ModuleNotFoundPlugin = require('react-dev-utils/ModuleNotFoundPlugin');
const NodePolyfillPlugin = require('node-polyfill-webpack-plugin');
Expand All @@ -32,7 +31,7 @@ const TerserPlugin = require('terser-webpack-plugin');
const {DefinePlugin, EnvironmentPlugin} = require('webpack');
const {
optionParser: app,
cssModuleIdent: getSimpleCSSModuleLocalIdent,
cssModuleIdent: getLocalIdent,
GracefulFsPlugin,
ILibPlugin,
WebOSMetaPlugin
Expand All @@ -46,6 +45,7 @@ module.exports = function (
contentHash = false,
isomorphic = false,
noAnimation = false,
framework = false,
ilibAdditionalResourcesPath
) {
process.chdir(app.context);
Expand Down Expand Up @@ -87,9 +87,6 @@ module.exports = function (
const GENERATE_SOURCEMAP = process.env.GENERATE_SOURCEMAP || (isEnvProduction ? 'false' : 'true');
const shouldUseSourceMap = GENERATE_SOURCEMAP !== 'false';

const getLocalIdent =
process.env.SIMPLE_CSS_IDENT !== 'false' ? getSimpleCSSModuleLocalIdent : getCSSModuleLocalIdent;

// common function to get style loaders
const getStyleLoaders = (cssLoaderOptions = {}, preProcessor) => {
// Multiple styling-support features are used together, bottom-to-top.
Expand Down Expand Up @@ -569,7 +566,11 @@ module.exports = function (
resolvePluginsRelativeTo: __dirname,
// @remove-on-eject-begin
baseConfig: {
extends: [require.resolve('eslint-config-enact')],
extends: [
framework
? require.resolve('eslint-config-enact/strict.js')
: require.resolve('eslint-config-enact/index.js')
],
rules: {
...(!hasJsxRuntime && {
'react/jsx-uses-react': 'warn',
Expand Down
Loading

0 comments on commit f5171d7

Please sign in to comment.