When I using vite + vue to do the unit testing for web components, I met this error:
Error: Failed to parse source for import analysis because the content contains invalid JS syntax. You may need to install appropriate plugins to handle the .html file format. ❯ formatError node_modules/vite/dist/node/chunks/dep-59dc6e00.js:38663:46 ❯ TransformContext.error node_modules/vite/dist/node/chunks/dep-59dc6e00.js:38659:19 ❯ TransformContext.transform node_modules/vite/dist/node/chunks/dep-59dc6e00.js:56777:22 ❯ async Object.transform node_modules/vite/dist/node/chunks/dep-59dc6e00.js:38900:30 ❯ async doTransform node_modules/vite/dist/node/chunks/dep-59dc6e00.js:55857:29
How can I solve this problem?