add optimization options use development mode for watch/hot/config tests use production mode for integration/stats tests create output directory if not existing move __esModule to runtime fix dependency behavior for cases without usedExports