Created
June 7, 2020 04:54
-
-
Save dsacramone/33de53d589e6315a4b88d33cc81b80e5 to your computer and use it in GitHub Desktop.
my current 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 peerDepsExternal from "rollup-plugin-peer-deps-external"; | |
import resolve from "rollup-plugin-node-resolve"; | |
import typescript from "rollup-plugin-typescript2"; | |
import sass from "rollup-plugin-sass"; | |
import commonjs from "rollup-plugin-commonjs"; | |
import copy from "rollup-plugin-copy"; | |
import packageJson from "./package.json"; | |
export default { | |
input: "src/index.ts", | |
output: [ | |
{ | |
file: packageJson.main, | |
format: "cjs", | |
sourcemap: true | |
}, | |
{ | |
file: packageJson.module, | |
format: "esm", | |
sourcemap: true | |
} | |
], | |
plugins: [ | |
peerDepsExternal(), | |
resolve(), | |
commonjs(), | |
typescript({ useTsconfigDeclarationDir: true }), | |
sass({ | |
insert: true | |
}) | |
] | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment