Having the export at the export will cause problems when bundling with webpack (in the context of a sapper application). The output produced by rollup will be something like this:
var Scope = Scope$1;
/**
* The class used to manipulate the data
*/
class Scope$1 {
...
}
Webpack will then give this error:
var Scope = Scope$1;
^
ReferenceError: Cannot access 'Scope$1' before initialization
Having the export at the export will cause problems when bundling with webpack (in the context of a sapper application). The output produced by rollup will be something like this:
Webpack will then give this error: