mathjslab
Version:
MathJSLab - An interpreter with language syntax like MATLAB®/Octave. ISBN 978-65-00-82338-7
38 lines (35 loc) • 940 B
text/typescript
import path from 'path';
import webpack from 'webpack';
const config: webpack.Configuration = {
entry: './src/lib.ts',
module: {
rules: [
{
test: /\.[tj]s$/,
use: [
{
loader: 'ts-loader',
options: {
configFile: 'tsconfig.build.json',
},
},
],
exclude: [/node_modules/, /.*\.spec\.[tj]s/],
},
],
},
resolve: {
extensions: ['.ts', '.js'],
alias: {
parser: path.resolve(__dirname, 'src/'),
},
},
output: {
path: path.resolve(__dirname, 'lib'),
filename: 'mathjslab.js',
library: 'mathjslab',
libraryTarget: 'umd',
clean: true,
},
};
export default config;