UNPKG

553 BJavaScriptView Raw
1#!/usr/bin/env node
2
3'use strict';
4
5const path = require('path');
6const url = require('url');
7const v8FlagsFilter = require('@devexpress/bin-v8-flags-filter');
8
9const ESM_OPTION = '--esm';
10
11const forcedArgs = [];
12
13if (process.argv.slice(2).includes(ESM_OPTION)) {
14 forcedArgs.push('--no-warnings');
15 forcedArgs.push(`--experimental-loader=${url.pathToFileURL(path.join(__dirname, '../lib/compiler/esm-loader.js')).href}`);
16}
17
18v8FlagsFilter(path.join(__dirname, '../lib/cli'), {
19 useShutdownMessage: true,
20 forcedArgs,
21});