Skip to content

Commit

Permalink
4.1.7 release
Browse files Browse the repository at this point in the history
  • Loading branch information
MikyungKim committed Feb 18, 2022
2 parents a578422 + c8faa60 commit 6fef32a
Show file tree
Hide file tree
Showing 5 changed files with 11,435 additions and 7,387 deletions.
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## 4.1.7 (February 18, 2022)

### pack

* Added `additionalModulePaths` to enact options to specify paths to check when resolving modules.

## 4.1.6 (December 2, 2021)

### pack
Expand Down Expand Up @@ -240,7 +246,7 @@ All dependencies updated to latest release.
### pack

* Fixed theme feature detection on local theme files (eg. when a local ThemeDecorator is present)
* Fixed bug with `--framework` option with regards to erroneously including unneeded or invalid iLib dependencies and test files.
* Fixed bug with `--framework` option with regards to erroneously including unneeded or invalid iLib dependencies and test files.

### clean

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ npm remove -g eslint-plugin-react eslint-plugin-react-hooks eslint-plugin-babel

Unless otherwise specified, all content, including all source code files and documentation files in this repository are:

Copyright (c) 2016-2021 LG Electronics
Copyright (c) 2016-2022 LG Electronics

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

Expand Down
11 changes: 10 additions & 1 deletion config/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,11 @@ module.exports = function (env) {
}
});

const getAdditionalModulePaths = paths => {
if (!paths) return [];
return Array.isArray(paths) ? paths : [paths];
};

return {
mode: isEnvProduction ? 'production' : 'development',
// Don't attempt to continue if there are any errors.
Expand Down Expand Up @@ -219,7 +224,11 @@ module.exports = function (env) {
ext => useTypeScript || !ext.includes('ts')
),
// Allows us to specify paths to check for module resolving.
modules: [path.resolve('./node_modules'), 'node_modules'],
modules: [
path.resolve('./node_modules'),
'node_modules',
...getAdditionalModulePaths(app.additionalModulePaths)
],
// Don't resolve symlinks to their underlying paths
symlinks: false,
// Backward compatibility for apps using new ilib references with old Enact
Expand Down
Loading

0 comments on commit 6fef32a

Please sign in to comment.