Skip to content

Commit

Permalink
fix: cannot use import statement outside a module
Browse files Browse the repository at this point in the history
  • Loading branch information
sinchang committed May 22, 2022
1 parent 4725c35 commit 4145013
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"module": "./dist/qrcodeParser.es.js",
"exports": "./dist/qrcodeParser.modern.js",
"types": "./dist/index.d.ts",
"type": "module",
"scripts": {
"prepublishOnly": "npm run build",
"test:cov": "jest --coverage",
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"compilerOptions": {
"target": "ESNext",
"useDefineForClassFields": true,
"module": "ESNext",
"module": "commonjs",
"lib": ["ESNext", "DOM"],
"moduleResolution": "Node",
"strict": true,
Expand Down

0 comments on commit 4145013

Please sign in to comment.