Skip to content

Commit

Permalink
chore: update rollup config
Browse files Browse the repository at this point in the history
  • Loading branch information
unional committed Sep 30, 2017
1 parent f05aaec commit a76c41b
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions rollup.config.es2015.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,17 @@ import sourcemaps from 'rollup-plugin-sourcemaps';

const pkg = require('./package');

const moduleName = pascalCase(pkg.name)
const name = pascalCase(pkg.name)

export default {
dest: `dist/${paramCase(pkg.name)}.es2015.js`,
entry: 'dist/es2015/index.js',
format: 'iife',
input: 'dist/es2015/index.js',
output: {
file: `dist/${paramCase(pkg.name)}.es2015.js`,
name,
sourcemap: true,
format: 'iife'
},
moduleId: pkg.name,
moduleName,
// This may comes handy
// onwarn(warning) {
// // Suppress this error message: "The 'this' keyword is equivalent to 'undefined' at the top level of an ES module, and has been rewritten"
Expand All @@ -34,6 +37,5 @@ export default {
nodeGlobals(),
nodeBuiltins(),
commonjs()
],
sourceMap: true
]
};

0 comments on commit a76c41b

Please sign in to comment.