PowerBI-JavaScript/webpack.test.config.js

30 строки
749 B
JavaScript
Исходник Постоянная ссылка Обычный вид История

const webpack = require('webpack'); // To access built-in plugins
2021-06-08 13:33:21 +03:00
const glob = require("glob");
module.exports = {
mode: 'development',
entry: glob.sync('./test/**/*.spec.ts'),
output: {
path: __dirname + "/tmp",
filename: 'test.spec.js'
},
devtool: 'source-map',
resolve: {
extensions: ['.webpack.js', '.web.js', '.ts', '.js']
},
module: {
rules: [
{ test: /\.map$/, loader: 'ignore-loader' },
{ test: /\.d.ts$/, loader: 'ignore-loader' },
{ test: /\.ts$/, exclude: /\.d.ts$/, loader: 'ts-loader' },
{ test: /\.json$/, loader: 'json-loader' }
]
},
plugins: [
new webpack.LoaderOptionsPlugin({
ts: {
configFileName: "webpack.test.tsconfig.json"
}
})
],
}