import chalk from 'chalk' ; import * as typescript from 'typescript' ; import '../injectors/dev' ; import { clearConsole } from '../lib/clearConsole' ; import { createCompiler } from '../lib/webpackCompiler' ; import { RuntimeOptions , IS_INTERACTIVE } from '../util/env' ; import { getWebpackConfig } from './util/getWebpackConfig' ; if ( IS_INTERACTIVE ) { clearConsole ( ) ; } console . log ( chalk . cyan ( 'Starting the development server...' ) ) ; console . log ( chalk . green ( 'Using TypeScript v' + typescript . version ) ) ; console . log ( ) ; const compiler = createCompiler ( getWebpackConfig ( 'development' ) , RuntimeOptions ) ; compiler . watch ( { } , ( err ) => { if ( err ) { throw err ; } } ) ;