You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Love this bundler and I appreciate the peace of mind having not to configure anything for things to just work.
Vitest does support in-source testing which I think is great when writing unit tests, however, since this bundler isn't extensible, it isn't possible for us to modify the Rollup config to tree-shake the testing code out as specified in their docs.
Would it be possible to merge the following replace config into the default Rollup config of this project? Whilst the addition of this shouldn't affect non-Vitest users, we can still include a check just incase to only include it if Vitest is present in the package.json.
// rollup.config.js+importreplacefrom'@rollup/plugin-replace'exportdefault{plugins: [+replace({+'import.meta.vitest': 'undefined',+})],// other options}
The text was updated successfully, but these errors were encountered:
Love this bundler and I appreciate the peace of mind having not to configure anything for things to just work.
Vitest does support in-source testing which I think is great when writing unit tests, however, since this bundler isn't extensible, it isn't possible for us to modify the Rollup config to tree-shake the testing code out as specified in their docs.
Would it be possible to merge the following replace config into the default Rollup config of this project? Whilst the addition of this shouldn't affect non-Vitest users, we can still include a check just incase to only include it if Vitest is present in the package.json.
The text was updated successfully, but these errors were encountered: