Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(utils/dynamicRequire): get rid of Webpack Critical dependency warning #1012

Merged
merged 1 commit into from
Jan 19, 2025

Conversation

pano9000
Copy link
Contributor

Hi,

this PR aims to get rid of the Webpack warning that appears when running webpack:

WARNING in ./src/public/app/services/utils.ts 249:15-34
  Critical dependency: the request of a dependency is an expression

It does it by simply explicitly passing the moduleName as string using template literal and not the moduleName "expression",

Source: https://stackoverflow.com/questions/42908116/

fixes the Webpack warning:
"WARNING in ./src/public/app/services/utils.ts 249:15-34
Critical dependency: the request of a dependency is an expression"

as we now explicitly pass the moduleName as string and not "expression"
source:
https://stackoverflow.com/questions/42908116/
@pano9000 pano9000 force-pushed the fix_webpack-warning branch from 4ba9fc2 to d56752e Compare January 19, 2025 11:57
Copy link
Contributor

@eliandoran eliandoran left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@eliandoran eliandoran merged commit b913e4e into develop Jan 19, 2025
5 checks passed
@eliandoran eliandoran deleted the fix_webpack-warning branch January 19, 2025 13:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants