/* * Copyright (C) Schweizerische Bundesbahnen SBB, 2019. */ const path = require('path'); module.exports = { entry: [ './src/index.ts', './node_modules/jquery/dist/jquery.js' ], devtool: 'inline-source-map', module: { rules: [ { enforce: 'pre', test: /\.tsx?$/, exclude: /node_modules/, use: 'eslint-loader' }, { test: /\.tsx?$/, exclude: /node_modules/, use: 'ts-loader' } ] }, resolve: { extensions: ['.tsx', '.ts', '.js'] }, output: { filename: 'bundle.js', path: path.resolve(__dirname, 'dist') } };