Closed zner0L closed 2 months ago
I tested that CLI builds correctly with this shim in place.
But without any changes to CA, you're relying on the fact that Parcel inlines the package.json
into the build for fetching CA's own version. If you don't also implement the shim into CA and rely on Parcel behaviour, you could just as well directly import and export from package.json
here as well. :D
I'm not certain but we have already spent way too much time pondering this, so my vote is to have the shim both here and in CA to have as little reliance on bundler-specific behaviour as possible.
But without any changes to CA, you're relying on the fact that Parcel inlines the
package.json
into the build for fetching CA's own version. If you don't also implement the shim into CA and rely on Parcel behaviour, you could just as well directly import and export frompackage.json
here as well. :D
I tested the shim in both, I just didn’t open a PR, because I wanted to await your verdict here.
I tested that CLI builds correctly with this shim in place.