Skip to content

Give all plugins access to config #4655

Answered by DeMoorJasper
101arrowz asked this question in General
Discussion options

You must be logged in to vote

either reading directly from the filesystem or reading from package.json using entryAsset.getPackage(). Not only is this bad practice

How is this bad practice? I would argue the other way around is bad practice, due to the spread of config in tooling specific config files like parcelrc or webpack.config.js or whatever you lose the ability to re-use configs across bundlers and other tools like tests, ...

For this you should probably add a key to pkg.json or an additional file like you stated it should not have any significant performance impact and we're gonna look into optimising this regardless anyway.

We have good reasons for not allowing this and I doubt this will change.

Replies: 4 comments 8 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by 101arrowz
Comment options

101arrowz
May 24, 2020
Collaborator Author

You must be logged in to vote
3 replies
@DeMoorJasper
Comment options

@101arrowz
Comment options

101arrowz May 24, 2020
Collaborator Author

@devongovett
Comment options

Comment options

101arrowz
May 24, 2020
Collaborator Author

You must be logged in to vote
5 replies
@mischnic
Comment options

@101arrowz
Comment options

101arrowz May 24, 2020
Collaborator Author

@DeMoorJasper
Comment options

@101arrowz
Comment options

101arrowz May 25, 2020
Collaborator Author

@mischnic
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
5 participants
Converted from issue

This discussion was converted from issue #4655 on May 24, 2020 20:38.