Skip to content

Latest commit

 

History

History
28 lines (19 loc) · 686 Bytes

README.md

File metadata and controls

28 lines (19 loc) · 686 Bytes

Polyfill Node.js with Vite (fix @starcoin/starcoin buffer)

Use

  • NodeGlobalsPolyfillPlugin
  • NodeModulesPolyfillPlugin
  • rollupNodePolyFill

Read vite.config.ts and node-modules-polyfill Config

fix @starcoin/starmask-onboarding bowser

Go to node_modules\@starcoin\starmask-onboarding\dist and open starmask-onboarding.es.js

- import { parse } from 'bowser';

// fix
+ import * as Bowser from 'bowser';
+ const parse = Bowser.parse;

How to run

  1. npm install
  2. fix @starcoin/starmask-onboarding bowser
  3. npm run dev
  4. open localhost:3000