On build Vite exits during generating the bundle, due to an error in the plugin.
[cep] Cannot read property 'replace' of undefined
error during build:
TypeError: Cannot read property 'replace' of undefined
For me it was line 254 where it's replacing fixing the /assets/ paths in .js files.
I haven't dove in enough to understand the full context, but it seems that some .js files don't contain a code property.
These are the available keys of the file that it errors on:
Related to #8
On build Vite exits during generating the bundle, due to an error in the plugin.
For me it was line 254 where it's replacing fixing the
/assets/
paths in.js
files.I haven't dove in enough to understand the full context, but it seems that some
.js
files don't contain acode
property. These are the available keys of the file that it errors on:Simply checking
.code
exists worked for me:Created draft fix #10