Skip to content

fix: update webpack-cli usage#16448

Closed
snitin315 wants to merge 1 commit intowebpack:mainfrom
snitin315:patch-2
Closed

fix: update webpack-cli usage#16448
snitin315 wants to merge 1 commit intowebpack:mainfrom
snitin315:patch-2

Conversation

@snitin315
Copy link
Member

What kind of change does this PR introduce?

For webpack-cli v5. webpack/webpack-cli#3439

Did you add tests for your changes?
No

Does this PR introduce a breaking change?
No

What needs to be documented once your changes are merged?

@webpack-bot
Copy link
Contributor

For maintainers only:

  • This needs to be documented (issue in webpack/webpack.js.org will be filed when merged)
  • This needs to be backported to webpack 4 (issue will be created when merged)

const pkgPath = require.resolve(`${cli.package}/package.json`);
// eslint-disable-next-line node/no-missing-require
const pkg = require(pkgPath);
const pkg = import(pkgPath);
Copy link
Member

Choose a reason for hiding this comment

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

it should be awaited

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants