-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrollup.config.js
More file actions
23 lines (20 loc) · 608 Bytes
/
Copy pathrollup.config.js
File metadata and controls
23 lines (20 loc) · 608 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// Copyright 2020 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/**
* @fileoverview Bundle for release.
*/
import pkg from './package.json';
export default {
input: 'src/index.js',
output: [
// We have to provide CommonJS still because rollup requires it :(.
{file: pkg.main, format: 'cjs', exports: 'named'},
{file: pkg.module, format: 'es'},
],
plugins: [],
external: [
'child_process', 'path',
...Object.keys({...pkg.dependencies, ...pkg.peerDependencies}),
],
};