mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
cb8ab6ccdb
- account for newly unused parameters in the slim builds Closes gh-5509
22 lines
532 B
JavaScript
22 lines
532 B
JavaScript
import webpack from "webpack";
|
|
|
|
// See https://webpack.js.org/api/node/#webpack
|
|
export async function runWebpack() {
|
|
return new Promise( async( resolve, reject ) => {
|
|
console.log( "Running Webpack" );
|
|
|
|
const { default: config } = await import( "../webpack.config.cjs" );
|
|
|
|
webpack( config, ( err, stats ) => {
|
|
if ( err || stats.hasErrors() ) {
|
|
console.error( "Errors detected during Webpack compilation" );
|
|
reject( err );
|
|
return;
|
|
}
|
|
|
|
console.log( "Build completed: Webpack" );
|
|
resolve();
|
|
} );
|
|
} );
|
|
}
|