@jakesidsmith/tsb
Version:
Dead simple TypeScript bundler, watcher, dev server, transpiler, and polyfiller
15 lines • 726 B
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const webpack_1 = __importDefault(require("webpack"));
const webpack_config_1 = require("../webpack-config");
const webpack_callback_1 = require("../webpack-callback");
const build = (configPath) => {
const webpackConfig = (0, webpack_config_1.createWebpackConfig)(configPath, 'development', 'watch');
const callback = (0, webpack_callback_1.createWebpackCallback)(false);
(0, webpack_1.default)(webpackConfig.base).watch({}, callback);
};
exports.default = build;
//# sourceMappingURL=watch.js.map