Skip to content

Commit

Permalink
build: fix win build (#13128)
Browse files Browse the repository at this point in the history
  • Loading branch information
OrKoN authored Sep 25, 2024
1 parent 98cad4e commit 9efe0ac
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions packages/puppeteer-core/rollup.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
* Copyright 2024 Google Inc.
* SPDX-License-Identifier: Apache-2.0
*/
import path from 'path';

import {getBabelOutputPlugin} from '@rollup/plugin-babel';
import {nodeResolve} from '@rollup/plugin-node-resolve';

Expand All @@ -20,10 +22,13 @@ export default {
if (id.includes('BrowserWebSocketTransport')) {
return false;
}
if (id.includes('puppeteer/node')) {
if (id.includes(`puppeteer${path.sep}node`)) {
return true;
}
if (id.includes('chromium-bidi') || id.includes('puppeteer/bidi')) {
if (
id.includes('chromium-bidi') ||
id.includes(`puppeteer${path.sep}bidi`)
) {
return true;
}
return false;
Expand Down

0 comments on commit 9efe0ac

Please sign in to comment.