@dsbtek/barcode-detector
Version:
A TypeScript library for real-time PDF417 barcode scanning.
25 lines (23 loc) • 550 B
JavaScript
const path = require('path');
module.exports = {
entry: './src/index.ts', // Entry point of your library
output: {
filename: 'bundle.js',
path: path.resolve(__dirname, 'dist'),
library: 'BarcodeDetector',
libraryTarget: 'umd',
globalObject: 'this',
},
resolve: {
extensions: ['.ts', '.js'],
},
module: {
rules: [
{
test: /\.ts$/,
use: 'ts-loader',
exclude: /node_modules/,
},
],
},
};