Skip to content

Commit

Permalink
chore: rename env var
Browse files Browse the repository at this point in the history
  • Loading branch information
emmenko committed Apr 26, 2022
1 parent 73d72e3 commit 08386a7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .changeset/fair-poets-watch.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
'@commercetools-frontend/mc-scripts': minor
---

Enable opt-in support for experimental bundler (using [Vite.js](https://vitejs.dev/)). To enable it, set the environment variable `ENABLE_EXPERIMENTAL_BUNDLER="true"` in your dotenv file.
Enable opt-in support for experimental bundler (using [Vite.js](https://vitejs.dev/)). To enable it, set the environment variable `ENABLE_EXPERIMENTAL_VITE_BUNDLER="true"` in your dotenv file.

All the CLI commands are fully compatible with the new bundler, so you can continue using them as before.

Expand Down
4 changes: 2 additions & 2 deletions packages/mc-scripts/src/bin/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ const applicationDirectory = fs.realpathSync(process.cwd());
process.env.NODE_ENV = 'production';

const shouldUseExperimentalBundler =
process.env.ENABLE_EXPERIMENTAL_BUNDLER === 'true';
process.env.ENABLE_EXPERIMENTAL_VITE_BUNDLER === 'true';
const shouldAlsoCompile = !flags['build-only'];

proxyCommand(command, {
Expand Down Expand Up @@ -111,7 +111,7 @@ const applicationDirectory = fs.realpathSync(process.cwd());
process.env.NODE_ENV = 'development';

const shouldUseExperimentalBundler =
process.env.ENABLE_EXPERIMENTAL_BUNDLER === 'true';
process.env.ENABLE_EXPERIMENTAL_VITE_BUNDLER === 'true';

proxyCommand(command, {
fileName: shouldUseExperimentalBundler ? 'start-vite' : 'start',
Expand Down
2 changes: 1 addition & 1 deletion playground/.env
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ APP_URL="https://app-kit-playground.vercel.app"
ECHO_SERVER_URL="https://app-kit-playground.vercel.app/api/echo"
HOST_GCP_STAGING=""
ENABLE_NEW_JSX_TRANSFORM="true"
ENABLE_EXPERIMENTAL_BUNDLER="true"
ENABLE_EXPERIMENTAL_VITE_BUNDLER="true"
FAST_REFRESH="true"

0 comments on commit 08386a7

Please sign in to comment.