-
Notifications
You must be signed in to change notification settings - Fork 11
faq
Nick edited this page Sep 13, 2022
·
4 revisions
Q: When I install the NPM version of the Token Negotiator inside my current project, I am seeing build errors where there are missing packages.
The Token Negotiator uses modern browser features not supported by older browsers. To use the NPM version of the library, you likely need to include a supported browser list inside your web apps package.json
(as shown below) or include a polyfils using a tool such a Browserify in your development pipeline.
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
},
Alternatively the Browser build (shown below) can be used, which out of the box includes polfils to support older browsers.
Browser build
<script type="text/javascript" src="./token-negotiator-dist/negotiator.js"></script>
<link rel="stylesheet" href="./token-negotiator-dist/theme/style.css" />