Skip to content

Commit

Permalink
Merge branch 'develop' into agg23/RerenderRecipe
Browse files Browse the repository at this point in the history
  • Loading branch information
lmiller1990 authored Apr 5, 2021
2 parents a7db3e5 + 88a3830 commit da199da
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion npm/vite-dev-server/src/makeCypressPlugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,13 @@ export const makeCypressPlugin = (
},
transformIndexHtml () {
return [
// load the script at the end of the body
// script has to be loaded when the vite client is connected
{
tag: 'script',
attrs: { type: 'module', src: INIT_FILEPATH },
injectTo: 'body',
attrs: { type: 'module' },
children: `import(${JSON.stringify(INIT_FILEPATH)})`,
},
]
},
Expand Down

0 comments on commit da199da

Please sign in to comment.