Skip to content

Commit c14dece

Browse files
committed
🐛 fix: Cannot use 'import.meta' outside a module
1 parent 3842b94 commit c14dece

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@haroonwaves/sqlite-wasm-easy",
3-
"version": "0.1.3",
3+
"version": "0.1.4",
44
"description": "A simple, zero-config wrapper around @sqlite.org/sqlite-wasm",
55
"type": "module",
66
"main": "./dist/index.js",
@@ -22,7 +22,7 @@
2222
"LICENSE"
2323
],
2424
"scripts": {
25-
"build": "tsc && vite build",
25+
"build": "vite build && tsc",
2626
"dev": "vite",
2727
"dev:examples": "npm run build && vite",
2828
"format": "prettier --write \"src/**/*.ts\"",

tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@
55
"lib": ["ES2022", "DOM", "WebWorker"],
66
"moduleResolution": "bundler",
77
"resolveJsonModule": true,
8+
"emitDeclarationOnly": true,
89
"declaration": true,
910
"declarationMap": true,
10-
"sourceMap": true,
11+
"sourceMap": false,
1112
"outDir": "./dist",
1213
"rootDir": "./src",
1314
"strict": true,

0 commit comments

Comments
 (0)