Skip to content

Instantly share code, notes, and snippets.

@emmiep
Last active June 13, 2018 17:21
Show Gist options
  • Select an option

  • Save emmiep/e2bf34ac6fad7e8bb21d0b9fa41d6776 to your computer and use it in GitHub Desktop.

Select an option

Save emmiep/e2bf34ac6fad7e8bb21d0b9fa41d6776 to your computer and use it in GitHub Desktop.
Bundle mixed JavaScript/TypeScript project with rollup
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}"
})
]
};
{
"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