Skip to content

netless-io/nolyfill-mathjs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@netless/nolyfill-mathjs

Helper package to nolyfill (invalidate) mathjs from white-web-sdk's dependencies.

Because mathjs is used to render the legacy PPT. Using this package can be helpful when you do not want to use legacy PPT and to include mathjs in your final bundle.

Usage

Edit your package.json.

NPM

https://docs.npmjs.com/cli/v10/configuring-npm/package-json#overrides

{
  "overrides": {
    "white-web-sdk": {
      "mathjs": "npm:@netless/[email protected]"
    }
  }
}

Then run npm install.

PNPM

https://pnpm.io/package_json#pnpmoverrides

{
  "pnpm": {
    "overrides": {
      "white-web-sdk>mathjs": "npm:@netless/[email protected]"
    }
  }
}

Then run pnpm install.

Yarn (v1)

https://classic.yarnpkg.com/lang/en/docs/selective-version-resolutions/#toc-how-to-use-it

{
  "resolutions": {
    "white-web-sdk/mathjs": "npm:@netless/[email protected]"
  }
}

Then run yarn install.

License

MIT @ netless