We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
For example, package arch has two entry points: main and browser.
For this kind of package, how should we adapt vite? Should we use Nested conditions as below?
{ "main": "./main.js", "exports": { "browser": "./feature-browser.mjs", "node": { "import": "./feature-node.mjs", "require": "./feature-node.cjs" } } }
The text was updated successfully, but these errors were encountered:
Vite supports the browser field.
browser
Conditional exports, on the other hand, is not supported because @rollup/plugin-node-resolve doesn't support it yet.
@rollup/plugin-node-resolve
Sorry, something went wrong.
New message:
rollup/plugins#540
@yyx990803
No branches or pull requests
For example, package arch has two entry points: main and browser.
For this kind of package, how should we adapt vite? Should we use Nested conditions as below?
The text was updated successfully, but these errors were encountered: