thebespokepixel/string

View on GitHub
rollup.config.js

Summary

Maintainability
A
0 mins
Test Coverage
import commonjs from '@rollup/plugin-commonjs'
import resolve from '@rollup/plugin-node-resolve'
import cleanup from 'rollup-plugin-cleanup'

const external = id => !id.startsWith('src') && !id.startsWith('.') && !id.startsWith('/') && !id.startsWith('\0')

const config = [{
    external,
    plugins: [resolve(), commonjs(), cleanup({comments: [/^\*\*/]})],
    input: 'src/index.js',
    output: {
        file: 'index.js',
        format: 'es',
    },
}]

export default config