Open itstheandre opened 2 years ago
Waiting for this 🙂
Adding this in your tsup config should work:
export default defineConfig({
// use rollup for treeshaking
treeshake: true,
define: {
'import.meta.vitest': false
}
})
Adding this in your tsup config should work:
export default defineConfig({ // use rollup for treeshaking treeshake: true, define: { 'import.meta.vitest': false } })
The code here should be:
export default defineConfig({
// use rollup for treeshaking
treeshake: true,
define: {
'import.meta.vitest': 'false'
}
})
The code provided by @mogeko worked for me.
export default defineConfig({
// use rollup for treeshaking
treeshake: true,
define: {
'import.meta.vitest': 'false'
}
})
First of all, thank you for such a great package!
Second, do you know if it's possible to not build a section like vitest has in its docs?
something like ignoring everything in an if block by environmental variable?
Upvote & Fund