tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

rollup.config.mjs (553B)


      1 /**
      2 * @license
      3 * Copyright 2024 Google Inc.
      4 * SPDX-License-Identifier: Apache-2.0
      5 */
      6 import {nodeResolve} from '@rollup/plugin-node-resolve';
      7 
      8 export default {
      9  input: 'main.mjs',
     10  output: {
     11    format: 'esm',
     12    dir: 'out',
     13  },
     14  // If you do not need to use WebDriver BiDi protocol,
     15  // exclude chromium-bidi/lib/cjs/bidiMapper/BidiMapper.js to minimize the bundle size.
     16  external: ['chromium-bidi/lib/cjs/bidiMapper/BidiMapper.js'],
     17  plugins: [
     18    nodeResolve({
     19      browser: true,
     20      resolveOnly: ['puppeteer-core'],
     21    }),
     22  ],
     23 };