poi-plugin-typescript

yarn add typescript poi-plugin-typescript --dev

Usage no npm install needed!

<script type="module">
  import poiPluginTypescript from 'https://cdn.skypack.dev/poi-plugin-typescript';
</script>

README

poi-plugin-typescript

Install

yarn add typescript poi-plugin-typescript --dev

Usage

// poi.config.js
module.exports = {
  plugins: [
    require('poi-plugin-typescript')(/* options */)
  ]
}

You will also need a tsconfig.json in your project, to make it work in Vue project, please check out https://vuejs.org/v2/guide/typescript.html

API

presetTypescript

Add TypeScript support

Parameters

  • options Object (optional, default {})
    • options.loaderOptions any Options for ts-loader. (optional, default undefined)

License

MIT © EGOIST