Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
guybedford committed Jul 7, 2024
1 parent 679a497 commit 1a15838
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ const map = new ImportMap({
'https://site.com/': {
react: 'https://cdn.com/react2.js'
}
},
integrity: {
'https://cdn.com/react.js': 'sha384-...'
}
}
});
Expand Down Expand Up @@ -63,6 +66,9 @@ console.log(JSON.stringify(map.toJSON(), null, 2));
// "https://another.com/": {
// "react": "./custom-react2.js"
// }
// },
// "integrity": {
// "https://cdn.com/react.js": "sha384-..."
// }
// }

Expand All @@ -80,6 +86,9 @@ console.log(JSON.stringify(map.toJSON(), null, 2));
// "https://another.com/": {
// "react": "../custom-react2.js"
// }
// },
// "integrity": {
// "https://cdn.com/react.js": "sha384-..."
// }
// }

Expand All @@ -95,6 +104,9 @@ console.log(JSON.stringify(map.toJSON(), null, 2));
// "https://another.com/": {
// "react": "../custom-react2.js"
// }
// },
// "integrity": {
// "https://cdn.com/react.js": "sha384-..."
// }
// }

Expand All @@ -110,6 +122,9 @@ console.log(JSON.stringify(map.toJSON(), null, 2));
// "https://another-site.com/": {
// "react": "../custom-react2.js"
// }
// },
// "integrity": {
// "https://another.com/react.js": "sha384-..."
// }
// }

Expand Down

0 comments on commit 1a15838

Please sign in to comment.