@@ -31,6 +31,9 @@ const map = new ImportMap({
31
31
' https://site.com/' : {
32
32
react: ' https://cdn.com/react2.js'
33
33
}
34
+ },
35
+ integrity: {
36
+ ' https://cdn.com/react.js' : ' sha384-...'
34
37
}
35
38
}
36
39
});
@@ -63,6 +66,9 @@ console.log(JSON.stringify(map.toJSON(), null, 2));
63
66
// "https://another.com/": {
64
67
// "react": "./custom-react2.js"
65
68
// }
69
+ // },
70
+ // "integrity": {
71
+ // "https://cdn.com/react.js": "sha384-..."
66
72
// }
67
73
// }
68
74
@@ -80,6 +86,9 @@ console.log(JSON.stringify(map.toJSON(), null, 2));
80
86
// "https://another.com/": {
81
87
// "react": "../custom-react2.js"
82
88
// }
89
+ // },
90
+ // "integrity": {
91
+ // "https://cdn.com/react.js": "sha384-..."
83
92
// }
84
93
// }
85
94
@@ -95,6 +104,9 @@ console.log(JSON.stringify(map.toJSON(), null, 2));
95
104
// "https://another.com/": {
96
105
// "react": "../custom-react2.js"
97
106
// }
107
+ // },
108
+ // "integrity": {
109
+ // "https://cdn.com/react.js": "sha384-..."
98
110
// }
99
111
// }
100
112
@@ -110,6 +122,9 @@ console.log(JSON.stringify(map.toJSON(), null, 2));
110
122
// "https://another-site.com/": {
111
123
// "react": "../custom-react2.js"
112
124
// }
125
+ // },
126
+ // "integrity": {
127
+ // "https://another.com/react.js": "sha384-..."
113
128
// }
114
129
// }
115
130
0 commit comments