<!-- ⚡️ katchow! We 💛 issues. 🚨 Your issue will be CLOSED if: - This template is removed - Parts of this template are removed 👉🏽 Need help or tech support? Please don't open an issue! Head to https://is.gd/rollup_chat or https://stackoverflow.com/questions/tagged/rollupjs ❤️ Rollup? Please consider supporting our collective: 👉 https://opencollective.com/rollup/donate --> - Rollup Plugin Name: plugin-node-resolve - Rollup Plugin Version: 14.1.0 - Rollup Version: 2.79.0 - Operating System (or Browser): Windows 10 Professional 21H2 19044.2006 - Node Version: 16.17.0 - Link to reproduction: https://replit.com/@FranklinWhale/NodeResolve14-TypeScript, https://replit.com/@FranklinWhale/NodeResolve13-TypeScript <!-- 🚨 Issues WITHOUT a valid reproduction WILL BE CLOSED! Please provide one by: 1. Using the REPL.it plugin reproduction template at https://repl.it/@rollup/rollup-plugin-repro 2. Provide a minimal repository link (Read https://gist.github.com/Rich-Harris/88c5fc2ac6dc941b22e7996af05d70ff for instructions). Please use NPM for installing dependencies! These may take more time to triage than the other options. 3. Using the Rollup REPL at https://rollupjs.org/repl/ ⚠️ ZIP Files are unsafe and maintainers will NOT download them. --> ### Expected Behavior The `diff` returns no result ### Actual Behavior In NodeResolve14-TypeScript, TS and JS output are not the same. The outputs are the same in NodeResolve13-TypeScript. ### Additional Information <!-- Most issues can be expressed or demonstrated through the REPL or a repository. However, the situation may arise where some small code snippets also need to be provided. In that situation, please add your code below using Fenced Code Blocks (https://help.github.com/articles/creating-and-highlighting-code-blocks/) --> 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](https://github.com/ezolenko/rollup-plugin-typescript2#rollupplugin-node-resolve).