1
0
Fork 0

chore: Linter changes

This commit is contained in:
Joost De Cock 2021-08-25 17:22:21 +02:00
parent 0f133e5cae
commit 5aeccb3644

View file

@ -12,23 +12,18 @@ const output = [
format: 'cjs', format: 'cjs',
sourcemap: true, sourcemap: true,
exports: rollup.exports, exports: rollup.exports,
} },
] ]
if (typeof module !== 'undefined') if (typeof module !== 'undefined')
output.push({ output.push({
banner, banner,
file: module, file: module,
format: 'es', format: 'es',
sourcemap: true sourcemap: true,
}) })
export default { export default {
input: 'src/index.js', input: 'src/index.js',
output, output,
plugins: [ plugins: [peerDepsExternal(), resolve({ modulesOnly: true }), commonjs(), json()],
peerDepsExternal(),
resolve({ modulesOnly: true }),
commonjs(),
json(),
]
} }