I'm building a client for a home-grown Node.js like backend and I'd like to support dynamic client-side JavaScript class generation. This can happen before or after Webpack but I'd prefer after (if that's doable).
In the end I'm trying to make something like this work:
import {TicTacToeGame} from 'warpdrive-client';
And have TicTacToeGame evaluate to be:
class TicTacToeGame { ... }
Except TicTacToeGame is generated by the import call or the global code in warpdrive-client based on supplied configuration or (if it's possible) an argument passed to the module at import time.
Thanks in advance.