@microbackend/plugin-typescript
v1.0.1
Published
Micro-backend Typescript plugin
Downloads
4
Readme
@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.