forked from forward/sql-parser
-
Notifications
You must be signed in to change notification settings - Fork 26
Expand file tree
/
Copy pathrollup.config.js
More file actions
27 lines (25 loc) · 729 Bytes
/
Copy pathrollup.config.js
File metadata and controls
27 lines (25 loc) · 729 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
import babel from 'rollup-plugin-babel';
import commonjs from 'rollup-plugin-commonjs';
const pkg = require('./package.json');
export default {
input : 'src/sql_parser.js',
output : {
file : 'browser/sql-parser.js',
name : 'SQLParser',
exports: 'named',
format : 'umd',
sourcemap: true,
banner : `/*!
* SQLParser (v${pkg.version})
* @copyright 2012-2015 ${pkg.author.name} <${pkg.author.email}>
* @copyright 2015-${new Date().getFullYear()} ${pkg.contributors[0].name} <${pkg.contributors[0].email}>
* @licence ${pkg.license}
*/`,
},
plugins : [
commonjs(),
babel({
exclude: 'node_modules/**',
}),
]
};