зеркало из https://github.com/Azure/ms-rest-js.git
44 строки
907 B
TypeScript
44 строки
907 B
TypeScript
import * as webpack from 'webpack';
|
|
import * as glob from 'glob';
|
|
import * as path from 'path';
|
|
|
|
const config: webpack.Configuration = {
|
|
entry: [...glob.sync(path.join(__dirname, 'test/shared/**/*.ts')), ...glob.sync(path.join(__dirname, 'test/browser/**/*.ts'))],
|
|
mode: 'development',
|
|
devtool: 'source-map',
|
|
devServer: {
|
|
contentBase: __dirname
|
|
},
|
|
output: {
|
|
filename: 'testBundle.js',
|
|
path: __dirname
|
|
},
|
|
module: {
|
|
rules: [
|
|
{
|
|
test: /\.tsx?$/,
|
|
loader: 'ts-loader',
|
|
exclude: /(node_modules)/,
|
|
options: { configFile: path.join(__dirname, './tsconfig.es.json') }
|
|
}
|
|
]
|
|
},
|
|
resolve: {
|
|
extensions: [".tsx", ".ts", ".js"]
|
|
},
|
|
node: {
|
|
fs: false,
|
|
net: false,
|
|
path: false,
|
|
dns: false,
|
|
tls: false,
|
|
tty: false,
|
|
v8: false,
|
|
Buffer: false,
|
|
process: false,
|
|
stream: false
|
|
}
|
|
};
|
|
|
|
export = config;
|