Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const mergedConfig = (env, argv) => (
merge(defaultWebpackConfig(env, argv), coreConfig())
);
const webpackConfig = (env, argv) => {
const config = defaultWebpackConfig(env, argv);
const propsTable = path.resolve(path.join(process.cwd(), 'node_modules', 'terra-props-table'));
const momentAlias = path.resolve(path.join(process.cwd(), 'node_modules', 'moment'));
const intl = path.resolve(path.join(process.cwd(), 'node_modules', 'intl'));
const terraMarkdown = path.resolve(path.join(process.cwd(), 'node_modules', 'terra-markdown'));
const terraDatePicker = path.resolve(path.join(process.cwd(), 'node_modules', 'terra-date-picker'));
const resizeObserver = path.resolve(path.join(process.cwd(), 'node_modules', 'resize-observer-polyfill'));
const reactRouterDom = path.resolve(path.join(process.cwd(), 'node_modules', 'react-router-dom'));
const babelRuntime = path.resolve(path.join(process.cwd(), 'node_modules', 'babel-runtime'));
const terraButton = path.resolve(path.join(process.cwd(), 'node_modules', 'terra-button'));
config.stats = 'normal';
config.resolve.alias = {};
config.resolve.alias['terra-props-table'] = propsTable;
config.resolve.alias['terra-markdown'] = terraMarkdown;
config.resolve.alias['terra-date-picker'] = terraDatePicker;