From 35d915e013863cd75b6a4cb05beb61e3a3959bdf Mon Sep 17 00:00:00 2001 From: Luiz Machado Date: Wed, 30 Jan 2019 19:04:46 -0200 Subject: [PATCH] workaround on node.js example, see #132 --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index c1edf4fe..44df7868 100644 --- a/README.md +++ b/README.md @@ -120,7 +120,7 @@ Use on browser with UMD: Use outside the browser with CommonJS: ```javascript -const { MultiFormatReader, BarcodeFormat } = require('@zxing/library';); +const { MultiFormatReader, BarcodeFormat } = require('@zxing/library/esm5'); // use this path since v0.5.1 const hints = new Map(); const formats = [BarcodeFormat.QR_CODE, BarcodeFormat.DATA_MATRIX/*, ...*/];