xref: /aosp_15_r20/external/cronet/third_party/re2/src/app/rollup.config.js (revision 6777b5387eb2ff775bb5750e3f5d96f37fb7352b)
1// Copyright 2022 The RE2 Authors.  All Rights Reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5import nodeResolve from '@rollup/plugin-node-resolve';
6import terser from '@rollup/plugin-terser';
7import html from '@web/rollup-plugin-html';
8import {importMetaAssets} from '@web/rollup-plugin-import-meta-assets';
9
10export default {
11  input: 'index.html',
12  output: {
13    entryFileNames: '[hash].js',
14    chunkFileNames: '[hash].js',
15    assetFileNames: '[hash][extname]',
16    format: 'es',
17  },
18  preserveEntrySignatures: false,
19  plugins:
20      [
21        html({
22          minify: true,
23        }),
24        nodeResolve(),
25        terser(),
26        importMetaAssets(),
27      ],
28};
29