@plaudit/webpack-extensions 2.9.1 → 2.9.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -211,15 +211,18 @@ module.exports = function (config, webpackConfig = require("@wordpress/scripts/c
211
211
  const srcIsDirectory = !Array.isArray(srcRoot) && node_fs_1.default.lstatSync(srcRoot).isDirectory();
212
212
  const copyFiles = srcIsDirectory && src !== dest;
213
213
  const plugins = webpackConfig.plugins?.filter(isTruthy) ?? [];
214
- plugins.push(new fork_ts_checker_webpack_plugin_1.default({
215
- async: true,
216
- typescript: {
217
- diagnosticOptions: {
218
- semantic: true,
219
- syntactic: true,
214
+ if (process.env["NO_TS_CHECKER"] !== "true") {
215
+ plugins.push(new fork_ts_checker_webpack_plugin_1.default({
216
+ async: true,
217
+ typescript: {
218
+ diagnosticOptions: {
219
+ semantic: true,
220
+ syntactic: true,
221
+ }
220
222
  }
221
- }
222
- }), new webpack_remove_empty_scripts_1.default({
223
+ }));
224
+ }
225
+ plugins.push(new webpack_remove_empty_scripts_1.default({
223
226
  stage: webpack_remove_empty_scripts_1.default.STAGE_AFTER_PROCESS_PLUGINS,
224
227
  extensions: ['css', 'scss', 'sass', 'less', 'styl', 'pcss']
225
228
  }));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plaudit/webpack-extensions",
3
- "version": "2.9.1",
3
+ "version": "2.9.2",
4
4
  "scripts": {
5
5
  "prepublishOnly": "rm -rf build && mkdir build && tsc",
6
6
  "build": "tsc",