Skip to content

Commit e44fe45

Browse files
committed
fix: Tests on node6
1 parent 324a9a7 commit e44fe45

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/node/test/manual/webpack-domain/npm-build.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ const path = require('path');
22
const webpack = require('webpack');
33
const { execSync } = require('child_process');
44

5+
// prettier-ignore
56
webpack(
67
{
78
entry: './index.js',
@@ -12,7 +13,7 @@ webpack(
1213
target: 'node',
1314
mode: 'development',
1415
},
15-
(err, stats) => {
16+
function(err, stats) {
1617
if (err) {
1718
console.error(err.stack || err);
1819
if (err.details) {
@@ -32,14 +33,13 @@ webpack(
3233
console.warn(info.warnings);
3334
process.exit(1);
3435
}
35-
3636
runTests();
37-
},
37+
}
3838
);
3939

4040
function runTests() {
4141
try {
42-
execSync(`node ${path.resolve(__dirname, 'dist', 'bundle.js')}`);
42+
execSync('node ' + path.resolve(__dirname, 'dist', 'bundle.js'));
4343
} catch (_) {
4444
process.exit(1);
4545
}

0 commit comments

Comments
 (0)