Skip to content

Commit 0e4d0d7

Browse files
committed
Clarify comment
1 parent 973a6f0 commit 0e4d0d7

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

packages/autocomplete-client/vite.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@ export default defineProject({
2222
}
2323
},
2424
},
25-
// the following code enables Vite in UMD mode to extend the global object with all of
26-
// the exports, and not just a property of it ( https://github.com/vitejs/vite/issues/11624 )
2725
rollupOptions: {
2826
external: ['instant-meilisearch'],
2927
output: {
@@ -32,6 +30,8 @@ export default defineProject({
3230
// i.e. the package name defined in instant-meilisearch's build config
3331
'instant-meilisearch': 'instantMeilisearch'
3432
},
33+
// the following code enables Vite in UMD mode to extend the global object with all of
34+
// the exports, and not just a property of it ( https://github.com/vitejs/vite/issues/11624 )
3535
footer: `(function () {
3636
if (typeof self !== "undefined") {
3737
var clonedGlobal = Object.assign({}, self.${globalVarName});

packages/instant-meilisearch/vite.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,14 @@ export default defineProject({
2222
}
2323
},
2424
},
25-
// the following code enables Vite in UMD mode to extend the global object with all of
26-
// the exports, and not just a property of it ( https://github.com/vitejs/vite/issues/11624 )
2725
rollupOptions: {
2826
external: ['meilisearch'],
2927
output: {
3028
globals: {
3129
'meilisearch': 'meilisearch'
3230
},
31+
// the following code enables Vite in UMD mode to extend the global object with all of
32+
// the exports, and not just a property of it ( https://github.com/vitejs/vite/issues/11624 )
3333
footer: `(function () {
3434
if (typeof self !== "undefined") {
3535
var clonedGlobal = Object.assign({}, self.${globalVarName});

0 commit comments

Comments
 (0)