Skip to content

Instantly share code, notes, and snippets.

@lukastaegert
Last active February 12, 2020 07:50
Show Gist options
  • Save lukastaegert/ee3c064abf7e8aad862431ea69fb49a9 to your computer and use it in GitHub Desktop.
Save lukastaegert/ee3c064abf7e8aad862431ea69fb49a9 to your computer and use it in GitHub Desktop.
Rollup TypeScript cache error
export function example(): number {
return 42;
}
{
"scripts": {
"start": "rollup -cw"
},
"dependencies": {
"@rollup/plugin-typescript": "^3.0.0",
"rollup": "^1.31.0",
"tslib": "^1.10.0",
"typescript": "^3.7.5"
}
}
import typescript from '@rollup/plugin-typescript';
export default {
input: 'app.ts',
output: {
dir: 'dist',
format: 'esm'
},
plugins: [typescript()]
};
{
"compilerOptions": {
"target": "ES2019",
"module": "ESNext",
"sourceMap": true,
"strict": true,
"moduleResolution": "node",
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"resolveJsonModule": true
},
"include": ["*.ts"]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment