@cypress/webpack-preprocessor
Advanced tools
Comparing version 5.10.0 to 5.11.0
@@ -0,1 +1,8 @@ | ||
# [@cypress/webpack-preprocessor-v5.11.0](https://github.com/cypress-io/cypress/compare/@cypress/webpack-preprocessor-v5.10.0...@cypress/webpack-preprocessor-v5.11.0) (2021-12-16) | ||
### Features | ||
* use hoisted yarn install in binary build ([#17285](https://github.com/cypress-io/cypress/issues/17285)) ([e4f5b10](https://github.com/cypress-io/cypress/commit/e4f5b106d49d6ac0857c5fdac886f83b99558c88)) | ||
# [@cypress/webpack-preprocessor-v5.10.0](https://github.com/cypress-io/cypress/compare/@cypress/webpack-preprocessor-v5.9.1...@cypress/webpack-preprocessor-v5.10.0) (2021-11-10) | ||
@@ -2,0 +9,0 @@ |
@@ -133,3 +133,3 @@ "use strict"; | ||
// disable any overrides if we've explictly turned off sourcemaps | ||
typescript_overrides_1.overrideSourceMaps(false, options.typescript); | ||
(0, typescript_overrides_1.overrideSourceMaps)(false, options.typescript); | ||
return; | ||
@@ -140,3 +140,3 @@ } | ||
// override typescript to always generate proper source maps | ||
typescript_overrides_1.overrideSourceMaps(true, options.typescript); | ||
(0, typescript_overrides_1.overrideSourceMaps)(true, options.typescript); | ||
}) | ||
@@ -151,3 +151,3 @@ .value(); | ||
var compiler = webpack(webpackOptions); | ||
var firstBundle = deferred_1.createDeferred(); | ||
var firstBundle = (0, deferred_1.createDeferred)(); | ||
// cache the bundle promise, so it can be returned if this function | ||
@@ -216,3 +216,3 @@ // is invoked again with the same filePath | ||
debug('compile', filePath); | ||
var nextBundle = deferred_1.createDeferred(); | ||
var nextBundle = (0, deferred_1.createDeferred)(); | ||
bundles[filePath].promise = nextBundle.promise; | ||
@@ -219,0 +219,0 @@ bundles[filePath].deferreds.push(nextBundle); |
@@ -16,3 +16,10 @@ "use strict"; | ||
} | ||
var typescript_1 = require(typescriptPath || 'typescript'); | ||
// when using webpack-preprocessor as a local filesystem dependency (`file:...`), | ||
// require(typescript) will resolve to this repo's `typescript` devDependency, not the | ||
// targeted project's `typescript`, which breaks monkeypatching. resolving from the | ||
// CWD avoids this issue. | ||
var projectTsPath = require.resolve(typescriptPath || 'typescript', { | ||
paths: [process.cwd()], | ||
}); | ||
var typescript_1 = require(projectTsPath); | ||
var createProgram_1 = typescript_1.createProgram; | ||
@@ -19,0 +26,0 @@ debug('typescript found, overriding typescript.createProgram()'); |
{ | ||
"name": "@cypress/webpack-preprocessor", | ||
"version": "5.10.0", | ||
"version": "5.11.0", | ||
"description": "Cypress preprocessor for bundling JavaScript via webpack", | ||
@@ -23,4 +23,4 @@ "private": false, | ||
"dependencies": { | ||
"bluebird": "^3.7.1", | ||
"debug": "4.3.2", | ||
"bluebird": "3.7.1", | ||
"debug": "^4.3.2", | ||
"lodash": "^4.17.20" | ||
@@ -57,3 +57,3 @@ }, | ||
"react-scripts": "3.2", | ||
"semantic-release": "17.0.4", | ||
"semantic-release": "17.2.3", | ||
"shx": "0.3.3", | ||
@@ -60,0 +60,0 @@ "sinon": "^9.0.0", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
32849
428
2
+ Addedbluebird@3.7.1(transitive)
+ Addeddebug@4.3.7(transitive)
+ Addedms@2.1.3(transitive)
- Removedbluebird@3.7.2(transitive)
- Removeddebug@4.3.2(transitive)
- Removedms@2.1.2(transitive)
Updatedbluebird@3.7.1
Updateddebug@^4.3.2