Détail du package

ts-config-webpack-plugin

merkle-open3kMIT2.0.3

Preset for typescript webpack configuration

ts-loader, typescript-loader, webpack, loader

readme

ts-config-webpack-plugin

NPM version Build Status lerna License Commitizen friendly Prettier

Creating a webpack loader configurations can be quite time consuming.
The ts-config-webpack-plugin is part of the common-config-webpack-plugin suite which tries to provide best practices for the most common loader requirements.

If no mode is explicitly set for the plugin the configuration will adjust depending on your webpack mode setting. The injected configurations are based on ts-loader thread-loader example.
⚙️development mode webpack.config.js ⚙️production mode webpack.config.js

Installation

npm i --save-dev ts-config-webpack-plugin

Webpack Config

In most projects you will need to set up project specific options but you can still use all or some common-config-webpack-plugin parts.

const TsConfigWebpackPlugin = require('ts-config-webpack-plugin');
module.exports = {
  plugins: [new TsConfigWebpackPlugin()],
};

tsconfig.json

By default the ts-config-webpack-plugin uses the tsconfig plugin to locate the tsconfig file.
To change the default location an option called configFile can be passed to the ts-config-webpack-plugin.
If no configuration can be determined the src/config/tsconfig.base.json file will be used as fallback.

const TsConfigWebpackPlugin = require('ts-config-webpack-plugin');
module.exports = {
  plugins: [
    new TsConfigWebpackPlugin({
      configFile: '/foo/bar/tsconfig.json',
    }),
  ],
};

changelog

Change Log

All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.

2.0.3 (2021-05-20)

Note: Version bump only for package ts-config-webpack-plugin

2.0.2 (2021-04-21)

Bug Fixes

  • update dependencies (632a08d)
  • ts-config-webpack-plugin: update dependencies (fae0cdb)
  • bump deps and cleanup package.json (ed1f792)

2.0.0 (2020-03-18)

Bug Fixes

  • ts-config-webpack-plugin: Move tslint to devDependencies (5f21775)

Features

  • Update dependencies (19642f2)
  • Upgrade webpack to 4.36 (d61386f)
  • ts-config-webpack-plugin: Upgrade ts-loader (a632447)

BREAKING CHANGES

  • ts-config-webpack-plugin: Drop support for node 6
  • Requires webpack 4.36.0 or higher

1.4.0 (2019-07-08)

Note: Version bump only for package ts-config-webpack-plugin

1.3.4 (2019-06-09)

Note: Version bump only for package ts-config-webpack-plugin

1.3.1 (2019-01-20)

Note: Version bump only for package ts-config-webpack-plugin

1.3.0 (2019-01-20)

Features

  • ts-config-webpack-plugin: Allow to use .tsx files without creating a custom tsconfig (e680c20)
  • ts-config-webpack-plugin: Update thread-loader (fca6d8f)

1.2.1 (2019-01-02)

Bug Fixes

  • ts-config-webpack-plugin: Add missing module-resolution property (3dc7b60)

1.2.0 (2018-12-21)

Bug Fixes

  • ts-config-webpack-plugin: Upgrade thread-loader to improve incremental build speed (f211143)

Features

  • ts-config-webpack-plugin: Add a warning if no moduleResultion is set (f3a4946)

1.1.0 (2018-12-11)

Features

  • ts-config-webpack-plugin: Warn if skipLibCheck wasn't configured (935b91a)

1.0.0 (2018-11-29)

Features

  • ts-config-webpack-plugin: improve performance by adding more cpu cores for the type-checker (49ef8c6)

0.4.4 (2018-10-22)

Bug Fixes

  • scss-config-webpack-plugin: Fix url paths of generated production css files (fa48bdf)

0.4.3 (2018-09-17)

Bug Fixes

  • ts-config-webpack-plugin: Fix "Debug Failure. False expression: Output generation failed" (cf7aba4)

0.4.2 (2018-09-12)

Note: Version bump only for package ts-config-webpack-plugin

0.4.1 (2018-09-12)

Note: Version bump only for package ts-config-webpack-plugin

0.4.0 (2018-08-30)

Bug Fixes

  • ts-config-webpack-plugin: Set the maximum memory during tests to 512mb (be11937)

Features

  • common-config-webpack-plugin: Set tyscript and babel as fixed dependency (ee2308e)

0.3.0 (2018-08-13)

Features

  • ts-config-webpack-plugin: upgrade fork dep & drop unnessary config (4e4215f)

0.2.0 (2018-08-10)

Features

  • ts-config-webpack-plugin: Provide a fallback tsconfig.json file (1d504d2)

0.1.0 (2018-08-07)

Bug Fixes

  • ts-config-webpack-plugin: change type of 'options' param (bc25ea3)
  • ts-config-webpack-plugin: fix fork process plugin injection (48d3766)
  • ts-config-webpack-plugin: remove dist files from tsc (7397b0e)
  • TsConfigWebpackPlugin: Remove devTool side effect (929fc28), closes #7
  • TsConfigWebpackPlugin: Use isProductionLike similar to the webpack core (e0fc773), closes #9
  • Adjust package.json main fields (3e3d95b)

Features

  • ts-config-webpack-plugin: add basic ts-config-webpack-plugin implementation and tests (e3d0f22)
  • Allow to set the mode to development or production (aa1b23f)
  • TsConfigWebpackPlugin: Add option to set the tsconfig file location (5c66127)