diff --git a/scripts/webpack.config.dev.js b/scripts/webpack.config.dev.js index 620d401..92893b6 100644 --- a/scripts/webpack.config.dev.js +++ b/scripts/webpack.config.dev.js @@ -31,9 +31,6 @@ module.exports = [ libraryTarget: 'umd', }), genConfig({ - optimization: { - minimize: false, - }, entry: path.resolve(__dirname, '..', 'src', 'index.js'), filename: 'tesseract.asm.dev.js', library: 'Tesseract', diff --git a/scripts/webpack.config.prod.js b/scripts/webpack.config.prod.js index 1c8af0b..9f127c7 100644 --- a/scripts/webpack.config.prod.js +++ b/scripts/webpack.config.prod.js @@ -7,7 +7,7 @@ const genConfig = ({ ...common, ...config, mode: 'production', - devtool: 'source-map', + // devtool: 'source-map', entry, output: { path: path.resolve(__dirname, '..', 'dist'), @@ -25,9 +25,6 @@ module.exports = [ libraryTarget: 'umd', }), genConfig({ - optimization: { - minimize: false, - }, entry: path.resolve(__dirname, '..', 'src', 'index.js'), filename: 'tesseract.asm.min.js', library: 'Tesseract', diff --git a/tests/recognize.test.js b/tests/recognize.test.js index c1b6670..575572c 100644 --- a/tests/recognize.test.js +++ b/tests/recognize.test.js @@ -1,5 +1,4 @@ const { TesseractWorker } = Tesseract; -const isBrowser = typeof window !== 'undefined' && typeof window.document !== 'undefined'; const IMAGE_PATH = 'http://localhost:3000/tests/assets/images'; const SIMPLE_TEXT = 'Tesseract.js\n';