This PR gets rid of a lot of special logic by using things built into (the current and an upcoming) version of Rollup. Mainly, rollup/rollup#2844 will add an option skipSelf to this.resolve which replaces the custom logic of this plugin with a more predictable one. Also this should provide a slight performance boost as we get rid of some unnecessary promises (the transform hook will be sync after this PR!).
Furthermore, this changes the format of plugin-generated proxy ids to \0./original/import/path?commonjs-proxy to allow for plugins like rollup-plugin-global-externals to more easily filter for those modules by just removing the leading \0.
This PR gets rid of a lot of special logic by using things built into (the current and an upcoming) version of Rollup. Mainly, rollup/rollup#2844 will add an option
skipSelf
tothis.resolve
which replaces the custom logic of this plugin with a more predictable one. Also this should provide a slight performance boost as we get rid of some unnecessary promises (the transform hook will be sync after this PR!).Furthermore, this changes the format of plugin-generated proxy ids to
\0./original/import/path?commonjs-proxy
to allow for plugins like rollup-plugin-global-externals to more easily filter for those modules by just removing the leading\0
.