aboutsummaryrefslogtreecommitdiff
path: root/node_modules/ts-loader/examples/react-cdn-simple/webpack.config.js
blob: 7abb3171dd3fa3fdc51e9e82f0e5e0f421150500 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
'use strict';

module.exports = {
    entry: './src/index.tsx',
    output: { filename: 'index.js' },
    module: {
        rules: [
            {
                test: /\.tsx?$/,
                loader: 'ts-loader',
                options: {
                    transpileOnly: true
                }
            }
        ]
    },
    resolve: {
        extensions: [ '.ts', '.tsx' ]
    },
    externals: {
        'react': 'React',
        'react-dom': 'ReactDOM'
    }
};