Skip to content

Commit

Permalink
change way to call webpack in build-lib-umd
Browse files Browse the repository at this point in the history
  • Loading branch information
smouillour committed Oct 12, 2023
1 parent 9001885 commit 4e7be57
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tools/scripts-core/src/scripts/build-lib-umd.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,11 @@ import fs from 'fs';
import * as utils from '@talend/scripts-utils';
import { getUserConfigFile } from '../utils/env.js';

const webpack = utils.path.resolveBin('webpack');
const dirname = utils.path.getDirName(import.meta.url);

async function buildUMD(env, presetApi, options = []) {
return utils.process.spawn(
webpack,
new URL(import.meta.resolve('webpack/bin/webpack.js')).pathname,
['--config', utils.path.hereRelative(dirname, '../config/webpack.config.js')].concat(options),
{ stdio: 'inherit', env },
);
Expand Down

0 comments on commit 4e7be57

Please sign in to comment.