@cypress/vite-dev-server
Advanced tools
Comparing version 1.2.1 to 1.2.2
@@ -0,1 +1,8 @@ | ||
# [@cypress/vite-dev-server-v1.2.2](https://github.com/cypress-io/cypress/compare/@cypress/vite-dev-server-v1.2.1...@cypress/vite-dev-server-v1.2.2) (2021-04-15) | ||
### Bug Fixes | ||
* conditionally require vue and update alias if installed ([#16000](https://github.com/cypress-io/cypress/issues/16000)) ([8b97b46](https://github.com/cypress-io/cypress/commit/8b97b4641e7e1b2af8ea38d44273dcc149267e20)) | ||
# [@cypress/vite-dev-server-v1.2.1](https://github.com/cypress-io/cypress/compare/@cypress/vite-dev-server-v1.2.0...@cypress/vite-dev-server-v1.2.1) (2021-04-13) | ||
@@ -2,0 +9,0 @@ |
@@ -25,7 +25,12 @@ "use strict"; | ||
finalConfig.resolve = finalConfig.resolve || {}; | ||
finalConfig.resolve.alias = { | ||
...finalConfig.resolve.alias, | ||
'@vue/compiler-core': path_1.resolve(path_1.dirname(require.resolve('@vue/compiler-core')), 'dist', 'compiler-core.cjs.js'), | ||
}, | ||
finalConfig.server = finalConfig.server || {}; | ||
try { | ||
finalConfig.resolve.alias = { | ||
...finalConfig.resolve.alias, | ||
'@vue/compiler-core': path_1.resolve(path_1.dirname(require.resolve('@vue/compiler-core')), 'dist', 'compiler-core.cjs.js'), | ||
}; | ||
} | ||
catch (e) { | ||
// Vue 3 is not installed | ||
} | ||
finalConfig.server = finalConfig.server || {}; | ||
finalConfig.server.port = await get_port_1.default({ port: finalConfig.server.port || 3000, host: 'localhost' }), | ||
@@ -32,0 +37,0 @@ debug(`the resolved server config is ${JSON.stringify(finalConfig, null, 2)}`); |
{ | ||
"name": "@cypress/vite-dev-server", | ||
"version": "1.2.1", | ||
"version": "1.2.2", | ||
"description": "Launches Vite Dev Server for Component Testing", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
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
15902
177