Replies: 1 comment 1 reply
-
This is because the server is just a regular plugin, so there's no special way it's exposed in the core JS api.
The original idea was described here: #4321 (comment)
Maybe we could expose that similar to how |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
First, Parcel 2 works great and is super easy when used as a CLI tool.
Though as soon as I want to use it programmatically, I'm faced with certain restrictions not present in Parcel V1.
options
is prohibited because almost all members are private in Parcel V2parcel/packages/core/core/src/Parcel.js
Lines 80 to 82 in 47379bf
Parcel V1 allowed to access them, like:
parcel/packages/core/parcel-bundler/src/Server.js
Lines 35 to 36 in e11f085
IMHO these restrictive changes are daunting and frustrating to work with.
Could you please explain why the API is designed that way? What are the benefits?
Beta Was this translation helpful? Give feedback.
All reactions