import ora from 'ora' ; import merge from 'deepmerge' ; import { Compiler } from 'webpack' ; import { run } from '../compiler' ; import { Args } from '../options' ; export default async ( args ) => { args = merge < Args > ( { options : { env : { NODE_ENV : process . env . NODE_ENV || 'development' , } , } , middleware : [ ] , } , args ) ; const compiler = await run ( 'inspect' , args ) ; console . log ( compiler ) ; } ;