File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -22,8 +22,6 @@ export default defineProject({
22
22
}
23
23
} ,
24
24
} ,
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 )
27
25
rollupOptions : {
28
26
external : [ 'instant-meilisearch' ] ,
29
27
output : {
@@ -32,6 +30,8 @@ export default defineProject({
32
30
// i.e. the package name defined in instant-meilisearch's build config
33
31
'instant-meilisearch' : 'instantMeilisearch'
34
32
} ,
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 )
35
35
footer : `(function () {
36
36
if (typeof self !== "undefined") {
37
37
var clonedGlobal = Object.assign({}, self.${ globalVarName } );
Original file line number Diff line number Diff line change @@ -22,14 +22,14 @@ export default defineProject({
22
22
}
23
23
} ,
24
24
} ,
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 )
27
25
rollupOptions : {
28
26
external : [ 'meilisearch' ] ,
29
27
output : {
30
28
globals : {
31
29
'meilisearch' : 'meilisearch'
32
30
} ,
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 )
33
33
footer : `(function () {
34
34
if (typeof self !== "undefined") {
35
35
var clonedGlobal = Object.assign({}, self.${ globalVarName } );
You can’t perform that action at this time.
0 commit comments