@poi/plugin-typescript
Advanced tools
Official TypeScript plugin for Poi.
Weekly downloads
Readme
Official TypeScript plugin for Poi.
This plugin use ts-loader
to transpile TypeScript files, it also uses fork-ts-checker-webpack-plugin
to perform type-checking. .ts
.tsx
and .vue
files are supported.
It's possible to run Babel alongside TypeScript using the babel option. When used with Babel, it's recommended to set compilerOptions.target
to es2015
or later in tsconfig.json
to delegate the rest to Babel for auto polyfill based on browser targets.
yarn add @poi/plugin-typescript typescript --dev
module.exports = {
plugins: [
{
resolve: '@poi/plugin-typescript',
options: {}
}
]
}
Then add a tsconfig.json
in your project:
{
"compilerOptions": {
"target": "es5",
"strict": true,
"module": "es2015",
"moduleResolution": "node"
}
}
boolean
false
Use Babel after the TypeScript compiler.
boolean
true
Lint TS files with ts-lint
at compile time, note that it will only work when you have a tslint.json
in your project root.
string
tsconfig.json
The path to the TypeScript config file.
any
Addtional options for ts-loader
.
any
Additional options for fork-ts-checker-webpack-plugin
.
FAQs
Official TypeScript plugin for Poi.
The npm package @poi/plugin-typescript receives a total of 615 weekly downloads. As such, @poi/plugin-typescript popularity was classified as not popular.
We found that @poi/plugin-typescript demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.