$ npm install @poi/plugin-typescript
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.
yarn add @poi/plugin-typescript@next typescript --dev
module.exports = {
plugins: [
{
resolve: '@poi/plugin-typescript'
}
]
}
Then add a tsconfig.json in your project:
{
compilerOptions: {
target: 'es5',
strict: true,
module: 'es2015',
moduleResolution: 'node'
}
}
© 2010 - cnpmjs.org x YWFE | Home | YWFE