mirror of
https://github.com/microsoft/pyright.git
synced 2024-09-11 07:55:56 +03:00
44 lines
897 B
JavaScript
44 lines
897 B
JavaScript
/**
|
|
* webpack.config.js
|
|
* Copyright: Microsoft 2018
|
|
*
|
|
* Configuration for webpack to bundle the javascript into a single file.
|
|
*/
|
|
|
|
const path = require('path');
|
|
|
|
module.exports = {
|
|
entry: './src/server.ts',
|
|
mode: 'development',
|
|
target: 'node',
|
|
output: {
|
|
filename: 'server.js',
|
|
path: path.resolve(__dirname, '../client/server')
|
|
},
|
|
|
|
resolve: {
|
|
modules: [
|
|
path.resolve(__dirname, '.'),
|
|
'node_modules'
|
|
],
|
|
// Add '.ts' and '.tsx' as resolvable extensions.
|
|
extensions: ['.webpack.js', '.web.js', '.ts', '.tsx', '.js']
|
|
},
|
|
|
|
module: {
|
|
rules: [
|
|
{
|
|
test: /\.tsx?$/,
|
|
loader: 'ts-loader',
|
|
options: {
|
|
configFile: 'tsconfig.json'
|
|
}
|
|
}
|
|
]
|
|
},
|
|
|
|
node: {
|
|
fs: 'empty'
|
|
}
|
|
};
|