Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- module.exports = {
- entry: './tsc/index',
- output: {
- path: 'build',
- filename: 'bundle.js'
- },
- resolve: {
- // Add '.ts' and '.tsx' as resolvable extensions.
- extensions: [".ts", ".tsx", ".js", ".json"]
- },
- module: {
- loaders: [
- {
- test: /\.ts$/,
- exclude: /(node_modules)/,
- loader: 'babel',
- query: {
- presets: ['es2015', 'react']
- }
- }
- ]
- }
- };
Add Comment
Please, Sign In to add comment