Emits the compiled game as an ES module that assigns it to variable.
variable
import { compile, emitModule } from '@datamoc/mw_games/mwl';console.log(emitModule(compile("[{ tag: 'game', schema: 0.1 }]")).startsWith('export const gameData')); // true Copy
import { compile, emitModule } from '@datamoc/mw_games/mwl';console.log(emitModule(compile("[{ tag: 'game', schema: 0.1 }]")).startsWith('export const gameData')); // true
Emits the compiled game as an ES module that assigns it to
variable.