Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function basicPreset() {
// this adds a resolve path for the build tooling deps like TS from the scripts folder
addResolvePath(__dirname);
option('production');
// Adds an alias for 'npm-install-mode' for backwards compatibility
option('min', { alias: 'npm-install-mode' });
option('webpackConfig', { alias: 'w' });
// Build only commonjs (not other TS variants) but still run other tasks
option('commonjs');
option('cached', { default: false });
}