forked from localForage/localForage-sessionStorageWrapper
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrollup.config.umd.js
More file actions
33 lines (32 loc) · 858 Bytes
/
rollup.config.umd.js
File metadata and controls
33 lines (32 loc) · 858 Bytes
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 typescript from 'rollup-plugin-typescript';
let pkg = require('./package.json');
export default {
input: 'lib/index.ts',
plugins: [
typescript({
tsconfig: false,
typescript: require('typescript'),
allowSyntheticDefaultImports: true,
module: 'es2015',
target: 'es3',
declaration: false,
noImplicitAny: true,
preserveConstEnums: true,
removeComments: true,
sourceMap: true,
strictNullChecks: true,
}),
],
external: ['localforage'],
output: [
{
file: pkg.main,
format: 'umd',
globals: {
localforage: 'localforage',
},
name: 'sessionStorageWrapper',
// sourceMap: true
},
],
};