Having copy-pasted rollup-plugin-replace.js in for the standalone build, I didn't realize that each regex to test for replacement patterns like /process\.env\.DEBUG/ needed to have the g modifier on it to replace more than one occurrence per file. This led to a few process access slipping into the browser build and crashing the linter worker in playground.solidjs.com.
Having copy-pasted
rollup-plugin-replace.js
in for the standalone build, I didn't realize that each regex to test for replacement patterns like/process\.env\.DEBUG/
needed to have theg
modifier on it to replace more than one occurrence per file. This led to a fewprocess
access slipping into the browser build and crashing the linter worker inplayground.solidjs.com
.