Skip to content

Commit 85d716e

Browse files
committed
chore(babel): fix lint in as-output-plugin test (avoid explicit undefined; disable consistent-return for manualChunks)
1 parent e44dc7b commit 85d716e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/babel/test/as-output-plugin.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,10 +388,10 @@ test('allows excluding manual chunks from output transform via `excludeChunks`',
388388
bundle,
389389
{
390390
format: 'es',
391+
// eslint-disable-next-line consistent-return
391392
manualChunks(id) {
392393
// Place the dependency into a named manual chunk
393394
if (id.endsWith(`${nodePath.sep}chunks${nodePath.sep}dep.js`)) return 'vendor';
394-
return undefined;
395395
},
396396
plugins: [
397397
getBabelOutputPlugin({

0 commit comments

Comments
 (0)