We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
esbuildOptions
1 parent a24917e commit 3ef27beCopy full SHA for 3ef27be
packages/toolkit/tsup.config.ts
@@ -199,13 +199,6 @@ export default defineConfig((options) => {
199
sourcemap: true,
200
external: externals,
201
esbuildPlugins: [mangleErrorsTransform],
202
- esbuildOptions(options) {
203
- // Needed to prevent auto-replacing of process.env.NODE_ENV in all builds
204
- options.platform = 'neutral'
205
- // Needed to return to normal lookup behavior when platform: 'neutral'
206
- options.mainFields = ['browser', 'module', 'main']
207
- options.conditions = ['browser']
208
- },
209
210
env: defineValues,
211
async onSuccess() {
0 commit comments