@enact/cli 6.0.4 → 6.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +10 -0
- package/README.md +1 -1
- package/commands/pack.js +1 -0
- package/config/webpack.config.js +7 -6
- package/npm-shrinkwrap.json +52206 -67935
- package/package.json +24 -33
package/CHANGELOG.md
CHANGED
|
@@ -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
|
+
|
|
1
11
|
## 6.0.4 (December 22, 2023)
|
|
2
12
|
|
|
3
13
|
### template
|
package/README.md
CHANGED
|
@@ -138,7 +138,7 @@ npm uninstall -g eslint-plugin-react eslint-plugin-react-hooks eslint-plugin-bab
|
|
|
138
138
|
|
|
139
139
|
Unless otherwise specified, all content, including all source code files and documentation files in this repository are:
|
|
140
140
|
|
|
141
|
-
Copyright (c) 2016-
|
|
141
|
+
Copyright (c) 2016-2024 LG Electronics
|
|
142
142
|
|
|
143
143
|
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
|
|
144
144
|
|
package/commands/pack.js
CHANGED
package/config/webpack.config.js
CHANGED
|
@@ -23,7 +23,6 @@ const ForkTsCheckerWebpackPlugin =
|
|
|
23
23
|
const HtmlWebpackPlugin = require('html-webpack-plugin');
|
|
24
24
|
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
|
|
25
25
|
const CssMinimizerPlugin = require('css-minimizer-webpack-plugin');
|
|
26
|
-
const getCSSModuleLocalIdent = require('react-dev-utils/getCSSModuleLocalIdent');
|
|
27
26
|
const getPublicUrlOrPath = require('react-dev-utils/getPublicUrlOrPath');
|
|
28
27
|
const ModuleNotFoundPlugin = require('react-dev-utils/ModuleNotFoundPlugin');
|
|
29
28
|
const NodePolyfillPlugin = require('node-polyfill-webpack-plugin');
|
|
@@ -32,7 +31,7 @@ const TerserPlugin = require('terser-webpack-plugin');
|
|
|
32
31
|
const {DefinePlugin, EnvironmentPlugin} = require('webpack');
|
|
33
32
|
const {
|
|
34
33
|
optionParser: app,
|
|
35
|
-
cssModuleIdent:
|
|
34
|
+
cssModuleIdent: getLocalIdent,
|
|
36
35
|
GracefulFsPlugin,
|
|
37
36
|
ILibPlugin,
|
|
38
37
|
WebOSMetaPlugin
|
|
@@ -46,6 +45,7 @@ module.exports = function (
|
|
|
46
45
|
contentHash = false,
|
|
47
46
|
isomorphic = false,
|
|
48
47
|
noAnimation = false,
|
|
48
|
+
framework = false,
|
|
49
49
|
ilibAdditionalResourcesPath
|
|
50
50
|
) {
|
|
51
51
|
process.chdir(app.context);
|
|
@@ -87,9 +87,6 @@ module.exports = function (
|
|
|
87
87
|
const GENERATE_SOURCEMAP = process.env.GENERATE_SOURCEMAP || (isEnvProduction ? 'false' : 'true');
|
|
88
88
|
const shouldUseSourceMap = GENERATE_SOURCEMAP !== 'false';
|
|
89
89
|
|
|
90
|
-
const getLocalIdent =
|
|
91
|
-
process.env.SIMPLE_CSS_IDENT !== 'false' ? getSimpleCSSModuleLocalIdent : getCSSModuleLocalIdent;
|
|
92
|
-
|
|
93
90
|
// common function to get style loaders
|
|
94
91
|
const getStyleLoaders = (cssLoaderOptions = {}, preProcessor) => {
|
|
95
92
|
// Multiple styling-support features are used together, bottom-to-top.
|
|
@@ -569,7 +566,11 @@ module.exports = function (
|
|
|
569
566
|
resolvePluginsRelativeTo: __dirname,
|
|
570
567
|
// @remove-on-eject-begin
|
|
571
568
|
baseConfig: {
|
|
572
|
-
extends: [
|
|
569
|
+
extends: [
|
|
570
|
+
framework
|
|
571
|
+
? require.resolve('eslint-config-enact/strict.js')
|
|
572
|
+
: require.resolve('eslint-config-enact/index.js')
|
|
573
|
+
],
|
|
573
574
|
rules: {
|
|
574
575
|
...(!hasJsxRuntime && {
|
|
575
576
|
'react/jsx-uses-react': 'warn',
|