text: import path from "path"
  
  export default {
    module: {
      loaders: [
        {
          test: /\.tsx?$/,
          loader: "ts-loader",
          exclude: /node_modules/,
        },
        {
          test: /\.jsx?$/,
          loader: "babel-loader",
          exclude: /node_modules/,
        },
        {
          test: /\.json$/,
          loader: "json-loader",
        },
        {
          test: /\.png$/,
          loader: "url-loader",
        },
      ],
    },
    output: {
      path: path.join(__dirname, "dist"),
      filename: "bundle.js",
      libraryTarget: "commonjs2",
    },
    resolve: {
      extensions: [".js", ".jsx", ".ts", ".tsx"],
      mainFields: ["webpack", "browser", "web", "browserify", ["jam", "main"], "main"],
    },
    plugins: [],
    externals: [
      // put your node 3rd party libraries which can't be built with webpack here
      // (mysql, mongodb, and so on..)
    ],
  }
  