@cypress/vite-dev-server
Advanced tools
Comparing version 1.2.2 to 1.2.3
@@ -0,1 +1,8 @@ | ||
# [@cypress/vite-dev-server-v1.2.3](https://github.com/cypress-io/cypress/compare/@cypress/vite-dev-server-v1.2.2...@cypress/vite-dev-server-v1.2.3) (2021-04-22) | ||
### Bug Fixes | ||
* make vite-dev-server work on windows ([#16103](https://github.com/cypress-io/cypress/issues/16103)) ([a380d02](https://github.com/cypress-io/cypress/commit/a380d020a4211ddbb2f10a61308bd1a6d2e45057)) | ||
# [@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) | ||
@@ -2,0 +9,0 @@ |
@@ -9,5 +9,8 @@ "use strict"; | ||
const pluginName = 'cypress-transform-html'; | ||
const INIT_FILEPATH = path_1.resolve(__dirname, '../client/initCypressTests.js'); | ||
const OSSepRE = new RegExp(`\\${path_1.sep}`, 'g'); | ||
const INIT_FILEPATH = path_1.resolve(__dirname, '../client/initCypressTests.js').replace(OSSepRE, '/'); | ||
const makeCypressPlugin = (projectRoot, supportFilePath, devServerEvents) => { | ||
let base = '/'; | ||
const posixSupportFilePath = supportFilePath ? path_1.resolve(projectRoot, supportFilePath).replace(OSSepRE, '/') : undefined; | ||
const normalizedSupportFilePath = posixSupportFilePath ? `${base}@fs/${posixSupportFilePath}` : undefined; | ||
return { | ||
@@ -20,3 +23,3 @@ name: pluginName, | ||
define: { | ||
'import.meta.env.__cypress_supportPath': JSON.stringify(supportFilePath ? path_1.resolve(projectRoot, supportFilePath) : undefined), | ||
'import.meta.env.__cypress_supportPath': JSON.stringify(normalizedSupportFilePath), | ||
'import.meta.env.__cypress_originAutUrl': JSON.stringify('__cypress/iframes/'), | ||
@@ -38,3 +41,3 @@ }, | ||
attrs: { type: 'module' }, | ||
children: `import(${JSON.stringify(INIT_FILEPATH)})`, | ||
children: `import(${JSON.stringify(`${base}@fs/${INIT_FILEPATH}`)})`, | ||
}, | ||
@@ -41,0 +44,0 @@ ]; |
{ | ||
"name": "@cypress/vite-dev-server", | ||
"version": "1.2.2", | ||
"version": "1.2.3", | ||
"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
16566
180