Setting target: "web"
for just the extraScripts
might also work (if NodeJS libraries are needed for the main script). I think this would be done in the extraScriptsConfig
object in webpack.config.js
.
Note: Be careful using this as a permanent solution! Modifying webpack.config.js
can make it difficult to update the plugin framework.