Skip to content

Commit 709c49d

Browse files
author
Kent C. Dodds
committed
fix(rollup): deal with deprecation warnings
1 parent 6d02313 commit 709c49d

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

src/config/rollup.config.js

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,18 +66,23 @@ const filepath = path.join(
6666
...[filenamePrefix, 'dist', filename].filter(Boolean),
6767
)
6868

69-
const output = [{file: filepath, format: esm ? 'es' : format}]
69+
const output = [
70+
{
71+
name,
72+
file: filepath,
73+
format: esm ? 'es' : format,
74+
exports: esm ? 'named' : 'default',
75+
globals,
76+
},
77+
]
7078

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

7482
module.exports = {
7583
input,
7684
output,
77-
exports: esm ? 'named' : 'default',
78-
name,
7985
external,
80-
globals,
8186
plugins: [
8287
isNode ? nodeBuiltIns() : null,
8388
isNode ? nodeGlobals() : null,

0 commit comments

Comments
 (0)