Skip to content
This repository has been archived by the owner on Jul 7, 2022. It is now read-only.

Commit

Permalink
fix(rollup): Fix rollup outdated Rollup configs
Browse files Browse the repository at this point in the history
Rollup changed a few proplocations and also remove explicit export config
  • Loading branch information
adambrgmn committed Jan 11, 2018
1 parent ef116e9 commit 66d53a3
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/config/bundle/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,10 @@ const file = path.join(outputDir, filename);

const output = {
file,
name,
format: isEsm ? 'es' : format,
globals,
sourcemap,
};

const useBuiltinConfig = !hasFile('.babelrc') && !hasPkgProp('babel');
Expand All @@ -52,11 +55,7 @@ const babelPresets = useBuiltinConfig ? [here('../build/babel.config.js')] : [];
module.exports = {
input,
output,
exports: isEsm ? 'named' : 'default',
name,
external,
globals,
sourcemap,
plugins: [
isNode ? nodeBuiltIns() : null,
isNode ? nodeGlobals() : null,
Expand Down

0 comments on commit 66d53a3

Please sign in to comment.