javascript-binary-converter
Version:
A utility package to quickly handle and convert various Javascript binary objects
33 lines (29 loc) • 648 B
JavaScript
const path = require('path')
module.exports = {
mode: 'production',
entry: './src/index.ts',
output: {
path: path.resolve(__dirname, '../build/umd'),
filename: 'index.js',
library: 'javascript-binary-converter',
libraryTarget: 'umd',
globalObject: 'this',
},
module: {
rules: [
{
test: /\.ts(x*)?$/,
exclude: /node_modules/,
use: {
loader: 'ts-loader',
options: {
configFile: 'config/tsconfig.umd.json',
},
},
},
],
},
resolve: {
extensions: ['.ts', '.js', '.tsx', '.jsx'],
},
}