forked from formatjs/formatjs-old
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrollup.config.js
33 lines (33 loc) · 893 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
28
29
30
31
32
33
import resolve from 'rollup-plugin-node-resolve';
import typescript from 'rollup-plugin-typescript2';
import commonjs from 'rollup-plugin-commonjs';
import replace from 'rollup-plugin-replace';
const resolveConfig = resolve({
customResolveOptions: {
'intl-messageformat': './packages/intl-messageformat',
'@formatjs/intl-utils': './packages/intl-utils',
'@formatjs/intl-relativetimeformat': './packages/intl-relativetimeformat'
}
})
export default [
{
input: './tests/index.ts',
output: {
sourcemap: true,
file: 'tests/browser.js',
format: 'umd'
},
plugins: [
replace({
'process.env.NODE_ENV': JSON.stringify('test')
}),
resolveConfig,
typescript({
tsconfigDefaults: {
compilerOptions: {
declaration: false
}
}
}) , commonjs()]
}
];