Confusion about javascript modules and webpack: The requested module … does not provide an export named ‘default’
I am trying to set up webpack in our javascript project and we want to write new javascript es6 classes, bundle them via webpack and then use the package in an es5 environment (because unfortunately we have a lot older code that we cannot simply replace). I set up a simple example where i define a TestClass, which gets picked up and bundled by webpack, which i then use to import it in a second javascript file.