You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// make sure external imports that should not be bundled are listed here for CJS build
38
40
external: ["node:crypto"],
39
41
}
40
-
: // https://github.com/vitejs/vite/issues/11624
42
+
: // the following code enables Vite in UMD mode to extend the global object with all of
43
+
// the exports, and not just a property of it ( https://github.com/vitejs/vite/issues/11624 )
44
+
// TODO: Remove this in the future ( https://github.com/meilisearch/meilisearch-js/issues/1806 )
41
45
{
42
46
output: {
43
47
footer: `(function(d,_){(d=typeof globalThis!="undefined"?globalThis:d||self,_(d))})(this,function(d){for(var k of Object.keys(d.${globalVarName})){d[k]=d.${globalVarName}[k]}})`,
0 commit comments