Skip to content

Commit

Permalink
fix: types for "moduleResolution": "bundler" (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
segevfiner committed Nov 5, 2023
1 parent 541d7e4 commit 3e2f8ae
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions exports/types.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export * from "../dist/index";
export { default } from "../dist/index";
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@
"name": "vite-plugin-wasm",
"version": "3.2.2",
"description": "Add WebAssembly ESM integration (aka. Webpack's `asyncWebAssembly`) to Vite and support `wasm-pack` generated modules.",
"main": "dist/index.js",
"types": "./dist/index.d.ts",
"main": "./dist/index.js",
"exports": {
"types": "./exports/types.d.ts",
"import": "./exports/import.mjs",
"require": "./exports/require.cjs"
},
Expand Down

0 comments on commit 3e2f8ae

Please sign in to comment.