Skip to content

Commit

Permalink
fix: remove extra "type": "module" (#66)
Browse files Browse the repository at this point in the history
* Update package.json

Keep the CommonJS format for now.
the ESModule format reports an error:
SyntaxError: The requested module '../dist/index.js' does not provide an export named 'default'

* Use cjs in jest config

---------

Co-authored-by: Menci <[email protected]>
  • Loading branch information
pfdgithub and Menci authored Dec 20, 2024
1 parent f01f77d commit efcbbee
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/** @type {import('ts-jest/dist/types').JestConfigWithTsJest} */
export default {
module.exports = {
verbose: true,
transform: {
"^.+\\.ts?$": [
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"name": "vite-plugin-wasm",
"version": "3.4.0",
"description": "Add WebAssembly ESM integration (aka. Webpack's `asyncWebAssembly`) to Vite and support `wasm-pack` generated modules.",
"type": "module",
"types": "./exports/require.d.cts",
"main": "./exports/require.cjs",
"module": "./exports/import.mjs",
Expand Down

0 comments on commit efcbbee

Please sign in to comment.