Open dilanx opened 2 years ago
Any news?
So you're suggesting playing around with coaco package.json
which is installed in the node_modules
?
How I wish COACO supports coaco.config.mjs
out of the box? 😑
if you name craco configuration as craco.config.cjs
, does it ease your pain?
I followed this and fixed my issue
craco.config.js
to craco.config.cjs
craco.config.cjs
module.exports = {
webpack: {
configure: {
module: {
rules: [
{
test: /\.m?js$/,
resolve: {
fullySpecified: false,
},
},
],
},
},
},
};
Got the answer from SO -> https://stackoverflow.com/a/75109686
@dilanx I see both cosmiconfig
and cosmiconfig-typescript-loader
have added support for ESM in their most recent releases. Would it help upgrading these dependencies?
Unlike Webpack 5, CRACO does not support ES6 modules. Make it so it does.