My goal is remove certain node modules from the output entirely - no bundling and no imports. The reason I want to remove them from the bundle is that I need to bring them in via a script tag instead.
I am able to get the plugin to remove the module code from the bundle, using the config below, but the imports in the js bundle remain and cause things not to work in the browser. Is there a setting in the plugin to also remove the imports?
My goal is remove certain node modules from the output entirely - no bundling and no imports. The reason I want to remove them from the bundle is that I need to bring them in via a script tag instead.
I am able to get the plugin to remove the module code from the bundle, using the config below, but the imports in the js bundle remain and cause things not to work in the browser. Is there a setting in the plugin to also remove the imports?
Undesired output in bundle: