https://github.com/domchen/tspack
A module bundler for TypeScript
https://github.com/domchen/tspack
Last synced: 9 months ago
JSON representation
A module bundler for TypeScript
- Host: GitHub
- URL: https://github.com/domchen/tspack
- Owner: domchen
- License: mit
- Created: 2015-10-30T11:42:19.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2017-07-23T03:45:22.000Z (almost 9 years ago)
- Last Synced: 2025-04-06T21:37:11.024Z (about 1 year ago)
- Language: TypeScript
- Homepage:
- Size: 110 KB
- Stars: 11
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://badge.fury.io/js/tspack)
# Introduction
tspack is a bundler for typescript modules. Packs many modules into a few bundled assets. Allows to split your codebase into multiple bundles, which can be loaded on demand.
# Installation
project:
`npm install tspack`
global:
`npm install tspack -g`
# Example
tsconfig.json :
```
{
"compilerOptions": {
"outDir": "bin-debug",
"target": "ES5",
"declaration": true,
"accessorOptimization": true,
"emitReflection": true,
"reorderFiles": true,
"defines": {
"DEBUG": false,
"LANGUAGE": "en_US"
}
},
"modules": [
{
"name": "core",
"include": [
"src/**/*"
],
"exclude": [
"**/web/*",
"node_modules"
],
"dependencies": []
},
{
"name": "web",
"declaration": false, // Override the default compiler options defined above.
"include": [
"src/**/web/*"
],
"exclude": [
"node_modules"
],
"dependencies": [
"core"
]
}
]
}
```