File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,13 @@ export default defineProject({
25
25
// the following code enables Vite in UMD mode to extend the global object with all of
26
26
// the exports, and not just a property of it ( https://github.com/vitejs/vite/issues/11624 )
27
27
rollupOptions : {
28
+ external : [ 'instant-meilisearch' ] ,
28
29
output : {
30
+ globals : {
31
+ // Map the external 'instant-meilisearch' import to 'instantMeilisearch' global variable,
32
+ // i.e. the package name defined in instant-meilisearch's build config
33
+ 'instant-meilisearch' : 'instantMeilisearch'
34
+ } ,
29
35
footer : `(function () {
30
36
if (typeof self !== "undefined") {
31
37
var clonedGlobal = Object.assign({}, self.${ globalVarName } );
Original file line number Diff line number Diff line change @@ -25,7 +25,11 @@ export default defineProject({
25
25
// the following code enables Vite in UMD mode to extend the global object with all of
26
26
// the exports, and not just a property of it ( https://github.com/vitejs/vite/issues/11624 )
27
27
rollupOptions : {
28
+ external : [ 'meilisearch' ] ,
28
29
output : {
30
+ globals : {
31
+ 'meilisearch' : 'meilisearch'
32
+ } ,
29
33
footer : `(function () {
30
34
if (typeof self !== "undefined") {
31
35
var clonedGlobal = Object.assign({}, self.${ globalVarName } );
You can’t perform that action at this time.
0 commit comments