-
-
Notifications
You must be signed in to change notification settings - Fork 602
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
Refactor(cli): Migrate from CJS to ESM #3436
Comments
This issue had no activity for at least half a year. It's subject to automatic issue closing if there is no activity in the next 15 days. |
Issue was closed because of inactivity. If you think this is still a valid issue, please file a new issue with additional information. |
Does this refactor mean that we can write BackgroundThere is currently some serious bug on TypeScript's new option
I want to know whether this issue can remove the need for |
You already can do it, we support commonjs and ESM formats |
@alexander-akait I can't. I got an error: Notice that I didn't use
"devDependencies": {
"@babel/core": "^7.24.0",
"@babel/plugin-transform-react-constant-elements": "^7.23.3",
"@babel/plugin-transform-runtime": "^7.24.0",
"@babel/preset-env": "^7.24.0",
"@babel/preset-react": "^7.23.3",
"webpack": "^5.90.3",
"webpack-cli": "^5.1.4",
"webpack-dev-server": "^5.0.2"
} |
Rename |
@alexander-akait That works :) and actually I'm using it before asking. But I don't like it. One reason is that everything Anyway, I'm still interested in whether we could let webpack be able to accept |
You need to set |
@alexander-akait OK, but I rarely see people using I thought that webpack-cli needs an explicit |
It is not related to the fact that webpack-cli is written in the commonjs format. Yes, you need |
Is your feature request related to a problem? Please describe.
As node evolves, we need to change from CJS to ESM for webpack-cli.
Describe the solution you'd like
N/A
Describe alternatives you've considered
N/A
Additional context
This issue originates from @alexander-akait 's feedback.
The text was updated successfully, but these errors were encountered: