UNPKG

@jakesidsmith/tsb

Version:

Dead simple TypeScript bundler, watcher, dev server, transpiler, and polyfiller

13 lines (9 loc) 408 B
import webpack from 'webpack'; import { createWebpackConfig } from '../webpack-config'; import { createWebpackCallback } from '../webpack-callback'; const build = (configPath: string | undefined): void => { const webpackConfig = createWebpackConfig(configPath, 'production', 'build'); const callback = createWebpackCallback(true); webpack(webpackConfig.base).run(callback); }; export default build;