File tree Expand file tree Collapse file tree 3 files changed +11
-1
lines changed
Expand file tree Collapse file tree 3 files changed +11
-1
lines changed Original file line number Diff line number Diff line change 5454 "@rollup/plugin-commonjs" : " ^28.0.6" ,
5555 "@rollup/plugin-node-resolve" : " ^16.0.1" ,
5656 "rollup" : " ^4.52.3" ,
57- "rollup-plugin-copy" : " ^3.5.0"
57+ "rollup-plugin-copy" : " ^3.5.0" ,
58+ "rollup-plugin-string" : " ^3.0.0"
5859 },
5960 "jest" : {
6061 "testEnvironment" : " node"
Original file line number Diff line number Diff line change 11import resolve from '@rollup/plugin-node-resolve' ;
22import commonjs from '@rollup/plugin-commonjs' ;
33import copy from 'rollup-plugin-copy' ;
4+ import { string } from 'rollup-plugin-string' ;
45
56const isProduction = process . env . NODE_ENV === 'production' ;
67
78const plugins = [
89 resolve ( { browser : true } ) ,
10+ string ( {
11+ include : '**/cardano_node_grpc_web_pb.js' ,
12+ } ) ,
913 commonjs ( ) ,
1014] ;
1115
Original file line number Diff line number Diff line change 11import { createInitializer } from './main.js' ;
22import { WASI } from '@bjorn3/browser_wasi_shim' ;
33import wasmUrl from './cardano-wasm.wasm' ;
4+ import grpcWebScript from './cardano_node_grpc_web_pb.js' ;
5+
6+ const script = document . createElement ( 'script' ) ;
7+ script . textContent = grpcWebScript ;
8+ document . head . appendChild ( script ) ;
49
510const getWasiInstance = async ( ) => {
611 return new WASI ( [ ] , [ ] , [ ] ) ;
You can’t perform that action at this time.
0 commit comments