Last active
February 12, 2020 07:50
-
-
Save lukastaegert/ee3c064abf7e8aad862431ea69fb49a9 to your computer and use it in GitHub Desktop.
Rollup TypeScript cache error
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
export function example(): number { | |
return 42; | |
} |
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
{ | |
"scripts": { | |
"start": "rollup -cw" | |
}, | |
"dependencies": { | |
"@rollup/plugin-typescript": "^3.0.0", | |
"rollup": "^1.31.0", | |
"tslib": "^1.10.0", | |
"typescript": "^3.7.5" | |
} | |
} |
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-typescript'; | |
export default { | |
input: 'app.ts', | |
output: { | |
dir: 'dist', | |
format: 'esm' | |
}, | |
plugins: [typescript()] | |
}; |
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": "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