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({
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 } );
Original file line number Diff line number Diff 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 } );
You can’t perform that action at this time.
0 commit comments