Created
March 23, 2019 09:44
-
-
Save raffecat/3848ee87069e4a158b80a84e80b04578 to your computer and use it in GitHub Desktop.
Rollup Config for Buble with ESLint
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import eslint from 'rollup-plugin-eslint'; | |
import buble from 'rollup-plugin-buble'; | |
export default { | |
input: 'src/entry.js', | |
output: { | |
file: 'dist/bundle.js', | |
format: 'iife' | |
}, | |
plugins: [ | |
eslint({}), | |
buble({ | |
transforms: { | |
dangerousForOf: true | |
}, | |
namedFunctionExpressions: false | |
}) | |
] | |
}; |
Uglify and TypeScript
import uglify from 'rollup-plugin-uglify';
import typescript from 'rollup-plugin-typescript2';
export default {
plugins: [
typescript(),
eslint({}),
buble(),
uglify()
]
};
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
package.json