No, it's not. Exports and imports are required to be statically analysable in ES6 modules.
Not only is that no-top-level export
declaration a syntax error, but also your attempt at declaring variables with dynamic names. The bracket notation is reserved for computed properties only.
So if you are going to programmatically generate module exports, you'll need to dynamically generate the module source text (as a part of your build process).
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…