Skip to content

Commit 10bbd3f

Browse files
committed
build: update config
1 parent db7892b commit 10bbd3f

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

rollup.config.js

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const pkg = require('./package');
44
const now = new Date();
55
const banner = `/*!
66
* isArrayBuffer v${pkg.version}
7-
* https://github.com/fengyuanchen/${pkg.name}
7+
* https://github.com/${pkg.repository}
88
*
99
* Copyright (c) 2015-${now.getFullYear()} ${pkg.author.name}
1010
* Released under the ${pkg.license} license
@@ -14,28 +14,26 @@ const banner = `/*!
1414
`;
1515

1616
export default {
17-
entry: 'src/index.js',
18-
targets: [
17+
input: 'src/index.js',
18+
output: [
1919
{
2020
banner,
21-
dest: 'dist/is-array-buffer.js',
21+
file: 'dist/is-array-buffer.js',
2222
format: 'umd',
2323
name: 'isArrayBuffer',
2424
},
2525
{
2626
banner,
27-
dest: 'dist/is-array-buffer.common.js',
27+
file: 'dist/is-array-buffer.common.js',
2828
format: 'cjs',
2929
},
3030
{
3131
banner,
32-
dest: 'dist/is-array-buffer.esm.js',
32+
file: 'dist/is-array-buffer.esm.js',
3333
format: 'es',
3434
},
3535
],
3636
plugins: [
37-
babel({
38-
exclude: '/node_modules/**',
39-
}),
37+
babel(),
4038
],
4139
};

0 commit comments

Comments
 (0)