-
-
Notifications
You must be signed in to change notification settings - Fork 594
New issue
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
browser: true ignored when plugin-node-resolve 14 is used with plugin-typescript #1267
Comments
This could finally explain the issues I'm having. +1 |
rollup-plugin-typescript2 has just released a version that works properly with plugin-node-resolve 14 https://replit.com/@FranklinWhale/NodeResolve13-TypeScript2 |
Same issue here. My workaround is to disable import typescriptPlugin from "@rollup/plugin-typescript";
import {nodeResolve as nodeResolvePlugin} from "@rollup/plugin-node-resolve";
const typescript = {
...typescriptPlugin(/* ... */),
// do not resolve anything instead leave this to `@rollup/plugin-node-resolve`!
// see also: https://github.com/rollup/plugins/issues/1267
resolveId: undefined,
};
const nodeResolve = nodeResolvePlugin({
extensions: [".mts", ".ts", ".cts", ".mjs", ".js", ".cjs", ".json", ".node"],
mainFields: ["browser", "module", "jsnext:main", "main"],
});
// ... |
Hey folks. This issue hasn't received any traction for 60 days, so we're going to close this for housekeeping. If this is still an ongoing issue, please do consider contributing a Pull Request to resolve it. Further discussion is always welcome even with the issue closed. If anything actionable is posted in the comments, we'll consider reopening it. ⓘ |
Expected Behavior
The
diff
returns no resultActual Behavior
In NodeResolve14-TypeScript, TS and JS output are not the same. The outputs are the same in NodeResolve13-TypeScript.
Additional Information
This is probably caused by the use of
order: "post"
as part of #1245. Both plugin-typescript and plugin-typescript2 require plugin-node-resolve be run before themselves.The text was updated successfully, but these errors were encountered: