There seems to be an issue with the new es module reconstruction feature in 17.0.0 #537.
Everything was working without issue initially, but when I tried to upgrade my npm dependencies including this plugin to 17.0.0, I started getting the following error in my browser:
Uncaught ReferenceError: exports is not defined
When looking at my bundle, the Object.defineProperty(exports, "__esModule", statements are no longer being compiled away for some reason.
I'm unsure if this is a bug, or just a configuration problem relating to the new feature being enabled by default? If it is just a configuration change that needs to be made with the update, it's probably worth documenting this somewhere.
There seems to be an issue with the new es module reconstruction feature in 17.0.0 #537.
Everything was working without issue initially, but when I tried to upgrade my npm dependencies including this plugin to 17.0.0, I started getting the following error in my browser:
When looking at my bundle, the
Object.defineProperty(exports, "__esModule",statements are no longer being compiled away for some reason.I'm unsure if this is a bug, or just a configuration problem relating to the new feature being enabled by default? If it is just a configuration change that needs to be made with the update, it's probably worth documenting this somewhere.