Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions config/jest/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ module.exports = {
'^@testing-library/react$': require.resolve('@testing-library/react'),
'^@testing-library/user-event$': require.resolve('@testing-library/user-event'),
'^react$': require.resolve('react'),
'^react-is$': require.resolve('react-is'),
// Backward compatibility for new iLib location with old Enact
'^ilib[/](.*)$': path.join(app.context, globals.ILIB_BASE_PATH, '$1'),
// Backward compatibility for old iLib location with new Enact
Expand Down
12 changes: 9 additions & 3 deletions config/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -360,9 +360,15 @@
symlinks: false,
// Backward compatibility for apps using new ilib references with old Enact
// and old apps referencing old iLib location with new Enact
alias: fs.existsSync(path.join(app.context, 'node_modules', '@enact', 'i18n', 'ilib')) ?
Object.assign({ilib: '@enact/i18n/ilib'}, app.alias) :
Object.assign({'@enact/i18n/ilib': 'ilib'}, app.alias),
alias: Object.assign(
{
'react-is': path.dirname(require.resolve('react-is/package.json'))
},
fs.existsSync(path.join(app.context, 'node_modules', '@enact', 'i18n', 'ilib'))
? {ilib: '@enact/i18n/ilib'}

Check warning on line 368 in config/webpack.config.js

View workflow job for this annotation

GitHub Actions / branch / test (node)

'?' should be placed at the end of the line

Check warning on line 368 in config/webpack.config.js

View workflow job for this annotation

GitHub Actions / pull-request / test (node)

'?' should be placed at the end of the line
: {'@enact/i18n/ilib': 'ilib'},

Check warning on line 369 in config/webpack.config.js

View workflow job for this annotation

GitHub Actions / branch / test (node)

':' should be placed at the end of the line

Check warning on line 369 in config/webpack.config.js

View workflow job for this annotation

GitHub Actions / pull-request / test (node)

':' should be placed at the end of the line
app.alias
),
// Optional configuration for redirecting module requests.
fallback: app.resolveFallback
},
Expand Down
73 changes: 37 additions & 36 deletions npm-shrinkwrap.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@
"react": "^19.2.4",
"react-dev-utils": "^12.0.1",
"react-dom": "^19.2.4",
"react-is": "^19.2.4",
"react-refresh": "^0.18.0",
"react-test-renderer": "^19.2.4",
"resolution-independence": "^1.0.0",
Expand Down
Loading