File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ ---
2+ ' @iota/dapp-kit ' : patch
3+ ---
4+
5+ Removed unused deps in dappkit.
Original file line number Diff line number Diff line change 44export const IOTA_IDENTITY_PKG_ID = import . meta. env . VITE_IOTA_IDENTITY_PKG_ID ;
55export const DID_PROTOCOL_SEGMENT_SYMBOL = ':' ;
66export const DID_URL_SEGMENT_SYMBOL = '-' ;
7- export const IDENTITY_WASM_PATH = '/identity_wasm_bg.wasm' ;
Original file line number Diff line number Diff line change 22// SPDX-License-Identifier: Apache-2.0
33
44import * as identity from '@iota/identity-wasm/web' ;
5+ import identityWasmUrl from '@iota/identity-wasm/web/identity_wasm_bg.wasm?url' ;
56import { isValidIotaObjectId } from '@iota/iota-sdk/utils' ;
67import { type IotaClient , Network } from '@iota/iota-sdk/client' ;
78import {
89 DID_PROTOCOL_SEGMENT_SYMBOL ,
910 DID_URL_SEGMENT_SYMBOL ,
10- IDENTITY_WASM_PATH ,
1111 IOTA_IDENTITY_PKG_ID ,
1212} from '~/lib/constants/trustFramework.constants' ;
1313
@@ -21,7 +21,7 @@ let initPromise: Promise<void> | null = null;
2121 */
2222export const initIdentityWasmWeb = async ( ) : Promise < void > => {
2323 if ( ! initPromise ) {
24- initPromise = identity . init ( IDENTITY_WASM_PATH ) . catch ( ( e ) => {
24+ initPromise = identity . init ( identityWasmUrl ) . catch ( ( e ) => {
2525 console . error ( 'failed to load identity wasm (web version)' , e ) ;
2626 initPromise = null ; // allow retry
2727 throw e ;
Original file line number Diff line number Diff line change 66import { sentryVitePlugin } from '@sentry/vite-plugin' ;
77import react from '@vitejs/plugin-react' ;
88import { execSync } from 'child_process' ;
9- import { copyFileSync } from 'fs' ;
109import { defineConfig , loadEnv } from 'vite' ;
1110import svgr from 'vite-plugin-svgr' ;
1211import { configDefaults } from 'vitest/config' ;
@@ -36,20 +35,6 @@ export default defineConfig(({ mode }) => {
3635 name : EXPLORER_REV ,
3736 } ,
3837 } ) ,
39- {
40- name : 'copy-wasm-files' ,
41- buildStart ( ) {
42- // Copy WASM files to public directory
43- try {
44- copyFileSync (
45- 'node_modules/@iota/identity-wasm/web/identity_wasm_bg.wasm' ,
46- 'public/identity_wasm_bg.wasm' ,
47- ) ;
48- } catch ( error ) {
49- console . warn ( 'Could not copy WASM files:' , error ) ;
50- }
51- } ,
52- } ,
5338 ] ,
5439 test : {
5540 // Omit end-to-end tests:
Original file line number Diff line number Diff line change 5252 "serialize-javascript" : " >=7.0.3" ,
5353 "form-data@>=4.0.0 <4.0.4" : " ^4.0.4" ,
5454 "sha.js" : " ^2.4.12" ,
55- "@mestamask/sdk@<0.33.0" : " 0.33.0" ,
56- "@mestamask/sdk-communication-layer@<0.33.0" : " 0.33.0" ,
5755 "validator@<13.15.15" : " 13.15.15" ,
5856 "node-forge@1.3.1" : " ^1.3.3" ,
5957 "glob@>=10.2.0 <10.5.0" : " 10.5.0" ,
Original file line number Diff line number Diff line change 6363 "@testing-library/react" : " ^16.0.0" ,
6464 "@testing-library/user-event" : " ^14.5.2" ,
6565 "@types/react" : " ^18.3.3" ,
66- "@vanilla-extract/esbuild-plugin" : " ^2.3.8" ,
6766 "@vanilla-extract/vite-plugin" : " ^4.0.13" ,
6867 "dotenv" : " ^16.4.5" ,
69- "jsdom" : " ^26.1.0" ,
7068 "react" : " ^18.3.1" ,
71- "react-dom" : " ^18.3.1" ,
7269 "size-limit" : " ^11.1.4" ,
7370 "typescript" : " ^5.5.3" ,
74- "vite" : " ^5.4.12" ,
7571 "vitest" : " ^3.2.4"
7672 },
7773 "dependencies" : {
Original file line number Diff line number Diff line change 66
77import { config } from 'dotenv' ;
88import { vanillaExtractPlugin } from '@vanilla-extract/vite-plugin' ;
9- import { defineConfig } from 'vite' ;
10- import { configDefaults } from 'vitest/config' ;
9+ import { defineConfig , configDefaults } from 'vitest/config' ;
1110
1211export default defineConfig ( {
1312 plugins : [ vanillaExtractPlugin ( ) ] ,
You can’t perform that action at this time.
0 commit comments