I watched your jsconf presentation on making things fast (which was great by the way) and towards the end you mentioned including warning comments to try and prevent accidentally importing something into the entry bundle.
I thought there must be a way of automating this, so that the comments could actually enforce it, and put together a rollup plugin
Interested to know what you think
The result of this PR is if you try and import something from a module that is in the entry group, that is not itself in the entry group (or an exception in the config), it will error out.
I watched your jsconf presentation on making things fast (which was great by the way) and towards the end you mentioned including warning comments to try and prevent accidentally importing something into the entry bundle.
I thought there must be a way of automating this, so that the comments could actually enforce it, and put together a rollup plugin
Interested to know what you think
The result of this PR is if you try and import something from a module that is in the
entry
group, that is not itself in theentry
group (or an exception in the config), it will error out.