Last active
June 13, 2018 17:21
-
-
Save emmiep/e2bf34ac6fad7e8bb21d0b9fa41d6776 to your computer and use it in GitHub Desktop.
Bundle mixed JavaScript/TypeScript project with rollup
This file contains hidden or 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 typescript from 'rollup-plugin-typescript2'; | |
| export default { | |
| input: 'src/index.js', | |
| output: { | |
| file: 'dist/app.js', | |
| format: 'umd', | |
| name: 'app', | |
| sourcemap: true | |
| }, | |
| plugins: [ | |
| typescript({ | |
| include: "src/**/*.{js,ts}" | |
| }) | |
| ] | |
| }; |
This file contains hidden or 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
Show hidden characters
| { | |
| "compilerOptions": { | |
| "target": "es6", | |
| "module": "es2015", | |
| "allowJs": true, | |
| "checkJs": true, | |
| "strict": true, | |
| "esModuleInterop": true | |
| }, | |
| "include": [ | |
| "src" | |
| ] | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment