examples-es icon indicating copy to clipboard operation
examples-es copied to clipboard

Fix Vite CJS build warning for Yarn and Vue

Open smaye81 opened this issue 6 months ago • 1 comments

Fixes #1721

This fixes the warning about Vite's deprecated CJS build in the react/yarn-pnp and vue projects by converting them to an ESM module. Previously, they were both CJS, most likely due to a simple oversight.

With Vue, it also involved renaming the Cypress config to be a .js file. Vue scaffolds Cypress config files to be a .ts file, which in turn does not work with ESM modules. See this issue for more info.

For more info on the Vite CJS message: https://vitejs.dev/guide/troubleshooting.html#vite-cjs-node-api-deprecated

smaye81 avatar Jul 30 '24 19:07 smaye81