Closed JoshAshby closed 2 years ago
same issue
+1
Would replacing config.shouldReload()
with config.getConfig
work?
The commit at https://github.com/schuetzm/parcel-transformer-svelte/commit/fixes seems to work, and an additional error with shouldInvalidateOnStartup()
. But I don't really understand the code, so it could be wrong.
As for config.shouldReload()
, the commit that removed it replaced it with a call to config.addDevDependency()
.
Yeah, it seems shouldReload
is not required anymore. I've released the fix in v1.2.3 to npm
Hey there, it looks like Parcel has recently removed the
config.shouldReload()
method for the config object recently which seems to break this extension on recent nightly versions of Parcel (looks like any version past2.0.0-nightly.610
) as a result ofloadConfig.js
using theshouldReload()
method.svelte.config.js
:.parcelrc
:Error with a recent parcel version (2.0.0-nightly.619 in this case):