How to use the tsconfig-paths-webpack-plugin.default function in tsconfig-paths-webpack-plugin

To help you get started, we’ve selected a few tsconfig-paths-webpack-plugin examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ng-qt / ng-qt / packages / builders / lib / build / create-webpack-config.js View on Github external
loader: 'ts-loader',
          options: {
            configFile: options.tsConfig,
            transpileOnly: true,
            getCustomTransformers: program => ({
              before: [transformers_1.inlineFilesTransformer(program), transformers_1.stripStylesTransformer(program)],
            }),
          },
        },
      ],
    },
    resolve: {
      extensions,
      alias: getAliases(options),
      plugins: [
        new tsconfig_paths_webpack_plugin_1.default({
          configFile: options.tsConfig,
          extensions,
          mainFields,
        }),
      ],
      mainFields,
    },
    performance: {
      hints: false,
    },
    plugins: [
      new ForkTsCheckerWebpackPlugin({
        tsconfig: options.tsConfig,
        useTypescriptIncrementalApi: options.useTypescriptIncrementalApi,
        workers: options.useTypescriptIncrementalApi
          ? ForkTsCheckerWebpackPlugin.ONE_CPU

tsconfig-paths-webpack-plugin

Load modules according to tsconfig paths in webpack.

MIT
Latest version published 10 months ago

Package Health Score

77 / 100
Full package analysis

Similar packages