UNPKG

webpack-typescript

Version:

Lightweight, cleanly designed TypeScript Loader for webpack.

18 lines (17 loc) 650 B
/// <reference path="../typings/node/node.d.ts" /> var path = require('path'); var baseDir_1 = require('./baseDir'); var Dependencies = (function () { function Dependencies() { this.dependencies = {}; } Dependencies.prototype.add = function (filePath) { this.dependencies[path.resolve(baseDir_1.default, filePath)] = true; }; Dependencies.prototype.forEach = function (callback) { Object.keys(this.dependencies).forEach(function (filePath) { return callback(filePath); }); }; return Dependencies; })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.default = Dependencies;