import * as path from "path" ; import { Configuration as WebpackConfiguration } from "webpack" ; import { DIST_DIRECTORY } from "../util/testPaths" ; export function config ( outputPath ? ) { outputPath = outputPath || path . join ( DIST_DIRECTORY , "test_output" ) ; return { output : { path : outputPath , filename : "bundle.js" , libraryTarget : "commonjs2" , } , } ; }