Guest User

webpack.config.js

a guest
Apr 17th, 2017
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. module.exports = {
  2.     entry: './tsc/index',
  3.     output: {
  4.         path: 'build',
  5.         filename: 'bundle.js'
  6.     },
  7.     resolve: {
  8.         // Add '.ts' and '.tsx' as resolvable extensions.
  9.         extensions: [".ts", ".tsx", ".js", ".json"]
  10.     },
  11.     module: {
  12.         loaders: [
  13.             {
  14.                 test: /\.ts$/,
  15.                 exclude: /(node_modules)/,
  16.                 loader: 'babel',
  17.                 query: {
  18.                     presets: ['es2015', 'react']
  19.                 }
  20.             }
  21.         ]
  22.     }
  23. };
Add Comment
Please, Sign In to add comment