-
Notifications
You must be signed in to change notification settings - Fork 125
/
rollup.config.js
27 lines (25 loc) · 742 Bytes
/
rollup.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import { babel } from '@rollup/plugin-babel';
import commonjs from '@rollup/plugin-commonjs';
import json from '@rollup/plugin-json';
import { nodeResolve } from '@rollup/plugin-node-resolve';
export default {
input: 'src/background/index.ts',
output: {
file: 'build/extension.bundle.js',
format: 'iife',
// Global variable used for entry point exports. This is not actually used,
// but it suppresses a warning from Rollup about accessing exports of an
// IIFE bundle.
name: 'hypothesis',
},
plugins: [
babel({
babelHelpers: 'bundled',
exclude: 'node_modules/**',
extensions: ['.js', '.ts'],
}),
nodeResolve({ extensions: ['.js', '.ts'] }),
commonjs(),
json(),
],
};