Closed musicq closed 6 months ago
its same as webpack and not a bug,rsbuild works may because rsbuild add some extra default config for resolve options? cc @chenjiahan
Try this:
module.exports = {
rules: [
{
test: /\.m?js/,
resolve: {
fullySpecified: false
}
},
]
}
@chenjiahan it works!
System Info
Details
Rspack will report error if I have some dependency packages with
type: module
in thepackage.json
.Errors be like
I tried the same code on rsbuild, it works.
Reproduce link
https://github.com/musicq/repr-rspack-type-module
Reproduce Steps