Skip to content
Permalink
Browse files

fix(rollup): deal with deprecation warnings

  • Loading branch information...
kentcdodds committed Jan 3, 2018
1 parent 6d02313 commit 709c49dd8bc764d08c6958762199c62cbc494e55
Showing with 9 additions and 4 deletions.
  1. +9 −4 src/config/rollup.config.js
@@ -66,18 +66,23 @@ const filepath = path.join(
...[filenamePrefix, 'dist', filename].filter(Boolean),
)

const output = [{file: filepath, format: esm ? 'es' : format}]
const output = [
{
name,
file: filepath,
format: esm ? 'es' : format,
exports: esm ? 'named' : 'default',
globals,
},
]

const useBuiltinConfig = !hasFile('.babelrc') && !hasPkgProp('babel')
const babelPresets = useBuiltinConfig ? [here('../config/babelrc.js')] : []

module.exports = {
input,
output,
exports: esm ? 'named' : 'default',
name,
external,
globals,
plugins: [
isNode ? nodeBuiltIns() : null,
isNode ? nodeGlobals() : null,

0 comments on commit 709c49d

Please sign in to comment.
You can’t perform that action at this time.