Skip to content

Commit

Permalink
fix(build): lint rollup
Browse files Browse the repository at this point in the history
  • Loading branch information
nomocas committed Apr 22, 2017
1 parent 1f946e1 commit 916521c
Showing 1 changed file with 15 additions and 18 deletions.
33 changes: 15 additions & 18 deletions rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,24 +1,21 @@
import babel from 'rollup-plugin-babel';
import babelrc from 'babelrc-rollup';

let pkg = require('./package.json');
let external = Object.keys(pkg.dependencies);
const pkg = require('./package.json'),
external = Object.keys(pkg.dependencies);

export default {
entry: 'src/index.js',
plugins: [ babel(babelrc()) ],
external: external,
targets: [
{
dest: pkg.main,
format: 'umd',
moduleName: '__MY__PROJECT__',
sourceMap: true
},
{
dest: pkg.module,
format: 'es',
sourceMap: true
}
]
entry: 'src/index.js',
plugins: [babel(babelrc())],
external,
targets: [{
dest: pkg.main,
format: 'cjs',
sourceMap: true
}, {
dest: pkg.module,
format: 'es',
sourceMap: true
}]
};

0 comments on commit 916521c

Please sign in to comment.