@microbackend/plugin-typescript
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

@microbackend/plugin-typescript

Microbackend plugin to add TypeScript support to the project.

Installation

npx microbackend plugin add @microbackend/plugin-typescript

Usage

import createPluginConfig from "@microbackend/plugin-core/build/webpack.build";

await createPluginConfig({
  pluginOptions: {
    "@microbackend/plugin-typescript": {
      enableTsConfigPaths: true,
      tsconfigPathsOptions: {},
    },
  },
});

Both of the above plugin options are optional. After integrating this plugin, TypeScript files will be loaded using ts-loader, and TsconfigPathsPlugin can be integrated to allow absolute imports using tsconfig's baseUrl and paths compiler options.

Readme

Keywords

none

Package Sidebar

Install

npm i @microbackend/plugin-typescript

Weekly Downloads

79

Version

1.0.1

License

MIT

Unpacked Size

12.9 kB

Total Files

16

Last publish

Collaborators

  • protoman92
  • haipham