@cypress/vite-dev-server 3.1.0 → 3.1.1

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.
@@ -49,7 +49,7 @@ const Cypress = (options, vite) => {
49
49
  let indexHtmlContent = await fs_1.default.promises.readFile(indexHtmlPath, { encoding: 'utf8' });
50
50
  // Inject the script tags
51
51
  indexHtmlContent = indexHtmlContent.replace('<head>', `<head>
52
- ${scriptTagsToInject.map((script) => script.toString())}
52
+ ${scriptTagsToInject.join('')}
53
53
  `);
54
54
  // find </body> last index
55
55
  const endOfBody = indexHtmlContent.lastIndexOf('</body>');
@@ -79,6 +79,7 @@ const createViteDevServerConfig = async (config, vite) => {
79
79
  cypressConfig.cypressBinaryRoot,
80
80
  ],
81
81
  },
82
+ host: '127.0.0.1',
82
83
  },
83
84
  plugins: [
84
85
  (0, index_1.Cypress)(config, vite),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cypress/vite-dev-server",
3
- "version": "3.1.0",
3
+ "version": "3.1.1",
4
4
  "description": "Launches Vite Dev Server for Component Testing",
5
5
  "main": "index.js",
6
6
  "scripts": {