diff --git a/sandpack-client/build.js b/sandpack-client/build.js index ecd6fbfeb..8c7d2e454 100644 --- a/sandpack-client/build.js +++ b/sandpack-client/build.js @@ -20,6 +20,7 @@ const options = { ...(package.devDependencies || {}), ...(package.peerDependencies || {}), }), + minify: true, }; build({ diff --git a/sandpack-react/build.js b/sandpack-react/build.js index 068ec8039..8191dc8f8 100644 --- a/sandpack-react/build.js +++ b/sandpack-react/build.js @@ -16,9 +16,8 @@ const options = { ...(package.devDependencies || {}), ...(package.peerDependencies || {}), }), - define: { - TEST_ENV: false, - }, + define: { "process.env.TEST_ENV": "false" }, + minify: true, }; build({