Skip to content
Discussion options

You must be logged in to vote

Thanks for the report. I checked this, and the issue can happen, but it is not because Rspack is missing the browser condition.

For web targets, Rspack already includes browser in the default conditionNames (https://rspack.rs/config/resolve#resolveconditionnames), and @rsbuild/plugin-solid preserves the default values via ....

The problem is that @thisbeyond/solid-dnd@0.7.5 has a solid export before its import export:

"exports": {
  "solid": {
    "development": "./dist/dev.jsx",
    "import": "./dist/index.jsx"
  },
  "import": {
    "default": "./dist/index.js"
  }
}

So after plugin-solid adds the solid condition, Rspack resolves this package to the .jsx entry. If Babel only processes a…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by high1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants