huncwot
Version:
A Programming Environment for TypeScript apps built on top of VS Code
27 lines (25 loc) • 562 B
JavaScript
import ts from '@wessberg/rollup-plugin-ts';
import { snowpackImportRewriter } from 'huncwot/compiler/typescript';
export default {
input: 'config/client/index.ts',
output: {
dir: 'public',
sourcemap: true,
paths: {
tslib: '/modules/tslib.js'
}
},
external: id => id.startsWith('/modules') || id == 'tslib',
watch: {
chokidar: true,
exclude: 'node_modules/**'
},
plugins: [
ts({
tsconfig: 'config/client/tsconfig.json',
transformers: {
after: [snowpackImportRewriter()]
}
}),
]
};