Created
March 28, 2020 17:49
-
-
Save mjanssen/dc06b36db1e337d9c63201674648205e to your computer and use it in GitHub Desktop.
Rollup config
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 babel from "rollup-plugin-babel"; | |
import multiInput from "rollup-plugin-multi-input"; | |
const extensions = [".ts", ".tsx"]; | |
export default { | |
input: ["./src/components/**/*.tsx"], | |
external: ["react"], | |
plugins: [ | |
multiInput(), | |
// Compile TypeScript/JavaScript files | |
babel({ extensions }) | |
], | |
output: { | |
format: "cjs", | |
dir: "lib" | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment