Skip to content

Allow to write webpack.config.js as an ES module which export default#109

Open
ceonizm wants to merge 2 commits into
railsware:masterfrom
ceonizm:master
Open

Allow to write webpack.config.js as an ES module which export default#109
ceonizm wants to merge 2 commits into
railsware:masterfrom
ceonizm:master

Conversation

@ceonizm

@ceonizm ceonizm commented Jun 24, 2026

Copy link
Copy Markdown

While modernizing a project that now leverages ESM, I needed to declare my webpack.config.js as an ES module too

This PR allows to do it.

Simply write the webpack.config.js in this form
`
const webpackConfig = {
// code here
};

export default webpackConfig;
`

François Boukhalfa and others added 2 commits June 25, 2026 00:40
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.

1 participant