var path = require('path');

module.exports = {
    context: path.join(__dirname, "src"),

    entry: { main: "./main" },
    devtool: "source-map",
    output: {
        path: path.join(__dirname, "dist"),
        filename: "[name].js"
    },

    resolve: {
        extensions: [".ts"]
    },

    module: {
        loaders: [
            { test: /\.ts$/, loader: "ts-loader" }
        ]
    }
};
var path = require('path');

module.exports = {
    context: path.join(__dirname, "src"),

    entry: { main: "./main" },
    devtool: "source-map",
    output: {
        path: path.join(__dirname, "dist"),
        filename: "[name].js"
    },

    resolve: {
        root: [
            path.resolve("."),
            path.resolve("./src")
        ],
        extensions: ["", ".ts", ".js"]
    },

    module: {
        loaders: [
            { test: /\.ts$/, loader: "ts-loader" }
        ]
    }
};
Allow require paths starting from the root
Allow require paths starting from the root

