Skip to content

Instantly share code, notes, and snippets.

@mjanssen
Created March 28, 2020 17:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mjanssen/dc06b36db1e337d9c63201674648205e to your computer and use it in GitHub Desktop.
Save mjanssen/dc06b36db1e337d9c63201674648205e to your computer and use it in GitHub Desktop.
Rollup config
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