Skip to content

Commit 1a15838

Browse files
committed
update readme
1 parent 679a497 commit 1a15838

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ const map = new ImportMap({
3131
'https://site.com/': {
3232
react: 'https://cdn.com/react2.js'
3333
}
34+
},
35+
integrity: {
36+
'https://cdn.com/react.js': 'sha384-...'
3437
}
3538
}
3639
});
@@ -63,6 +66,9 @@ console.log(JSON.stringify(map.toJSON(), null, 2));
6366
// "https://another.com/": {
6467
// "react": "./custom-react2.js"
6568
// }
69+
// },
70+
// "integrity": {
71+
// "https://cdn.com/react.js": "sha384-..."
6672
// }
6773
// }
6874

@@ -80,6 +86,9 @@ console.log(JSON.stringify(map.toJSON(), null, 2));
8086
// "https://another.com/": {
8187
// "react": "../custom-react2.js"
8288
// }
89+
// },
90+
// "integrity": {
91+
// "https://cdn.com/react.js": "sha384-..."
8392
// }
8493
// }
8594

@@ -95,6 +104,9 @@ console.log(JSON.stringify(map.toJSON(), null, 2));
95104
// "https://another.com/": {
96105
// "react": "../custom-react2.js"
97106
// }
107+
// },
108+
// "integrity": {
109+
// "https://cdn.com/react.js": "sha384-..."
98110
// }
99111
// }
100112

@@ -110,6 +122,9 @@ console.log(JSON.stringify(map.toJSON(), null, 2));
110122
// "https://another-site.com/": {
111123
// "react": "../custom-react2.js"
112124
// }
125+
// },
126+
// "integrity": {
127+
// "https://another.com/react.js": "sha384-..."
113128
// }
114129
// }
115130

0 commit comments

Comments
 (0)