-
Notifications
You must be signed in to change notification settings - Fork 367
/
rollup.config.js
41 lines (38 loc) · 1.15 KB
/
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
// Copyright (c) .NET Foundation and contributors. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
import typescript from 'rollup-plugin-typescript2'
import resolve from 'rollup-plugin-node-resolve';
import commonjs from 'rollup-plugin-commonjs';
import pkg from './package.json';
export default {
output: [
{
sourcemap: 'inline',
format: 'umd',
name: 'interactive',
}
],
external: [
// ...Object.keys(pkg.dependencies || {}),
...Object.keys(pkg.peerDependencies || {}),
...Object.keys(pkg.devDependencies || {}),
],
plugins: [
typescript({
typescript: require('typescript'),
tsconfigOverride: {
compilerOptions: {
"module": "ES2015"
}
},
}),
resolve({
mainFields: ['browser', 'esnext', 'module', 'main'],
browser: true,
customResolveOptions: {
moduleDirectory: 'node_modules'
}
}),
commonjs()
],
}