From b1391c13616ab67e9a2862f2cc13fe56e36399be Mon Sep 17 00:00:00 2001 From: Borja Gonzalez Date: Sat, 6 Mar 2021 23:32:33 +0100 Subject: [PATCH] Fixed esbuild config --- esbuild.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/esbuild.js b/esbuild.js index 1d10ac5..46c2910 100644 --- a/esbuild.js +++ b/esbuild.js @@ -4,6 +4,9 @@ require('esbuild').build({ format: 'cjs', minify: true, outfile: 'build/index.js', - target: 'es5', + target: 'es6', external: ['react'], + define: { + 'process.env.NODE_ENV': '"production"', + }, }).catch(() => process.exit(1))