weboptimizer 2.0.1357 → 2.0.1359

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.
Files changed (1) hide show
  1. package/package.json +6 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "weboptimizer",
3
- "version": "2.0.1357",
3
+ "version": "2.0.1359",
4
4
  "description": "A generic web optimizer, (module) bundler and development environment.",
5
5
  "keywords": [
6
6
  "webpack",
@@ -444,7 +444,7 @@
444
444
  {
445
445
  "arguments": [
446
446
  {
447
- "__evaluate__": "path.resolve(self.path.source.asset.cascadingStyleSheet, '**/*.css')"
447
+ "__evaluate__": "path.resolve(self.path.source.asset.cascadingStyleSheet, `**/*.${self.generic.cascadingStyleSheetFileExtension}`)"
448
448
  },
449
449
  "--config",
450
450
  {
@@ -486,6 +486,9 @@
486
486
  "'**/plugins/*'",
487
487
  "--ignore-pattern",
488
488
  "'*.d.ts'",
489
+ {
490
+ "__evaluate__": "Tools.isFileSync(path.resolve(currentPath, 'tsconfig.json')) ? '--parser-options=project:tsconfig.json' : ''"
491
+ },
489
492
  "--resolve-plugins-relative-to",
490
493
  ".",
491
494
  "'**/*.{jsx,ts,tsx}'"
@@ -728,6 +731,7 @@
728
731
  "pattern": "'use strict';if(typeof module!=='undefined'&&module!==null&&eval('typeof require')!=='undefined'&&eval('require')!==null&&'main'in eval('require')&&eval('typeof require.main')!=='undefined'&&eval('require.main')!==null){var ORIGINAL_MAIN_MODULE=module;if(module!==eval('require.main')&&'paths'in module&&'paths'in eval('require.main')&&typeof __dirname!=='undefined'&&__dirname!==null)module.paths=eval('require.main.paths').concat(module.paths.filter(function(path){return eval('require.main.paths').includes(path)}))};"
729
732
  }
730
733
  },
734
+ "cascadingStyleSheetFileExtension": "css",
731
735
  "isWeb": true,
732
736
  "supportedBrowsers": [
733
737
  "last 2 major versions",