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))