Skip to content

Commit

Permalink
fix bootstrap script logic
Browse files Browse the repository at this point in the history
  • Loading branch information
pgayvallet committed Mar 24, 2021
1 parent 023c6af commit 38ab1af
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/cli/serve/serve.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ function canRequire(path) {
const DEV_MODE_PATH = resolve(__dirname, '../../dev/cli_dev_mode');
const DEV_MODE_SUPPORTED = canRequire(DEV_MODE_PATH);

const getBootstrapScript = () => {
if (DEV_MODE_SUPPORTED && process.env.isDevCliChild !== 'true') {
const getBootstrapScript = (isDev) => {
if (DEV_MODE_SUPPORTED && isDev && process.env.isDevCliChild !== 'true') {
const { bootstrapDevMode } = require('../../dev/cli_dev_mode');
return bootstrapDevMode;
} else {
Expand Down Expand Up @@ -240,7 +240,7 @@ export default function (program) {
cache: !!opts.cache,
dist: !!opts.dist,
};
const bootstrapScript = getBootstrapScript();
const bootstrapScript = getBootstrapScript(cliArgs.dev);

await bootstrapScript({
configs,
Expand Down

0 comments on commit 38ab1af

Please sign in to comment.