Skip to content

Commit

Permalink
fix: update UMD/global library name
Browse files Browse the repository at this point in the history
  • Loading branch information
JesseTheRobot committed Sep 4, 2024
1 parent aaa7330 commit 0c2d365
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions webIndex.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import * as arbundlesSrc from "./src";
import * as bundlesSrc from "./src";
import * as stream from "./src/stream";
const expObj = { ...arbundlesSrc, stream };
globalThis.arbundles ??= expObj;
const expObj = { ...bundlesSrc, stream };
globalThis.bundles ??= expObj;
export * from "./src/index";
export * from "./src/stream";
export default expObj;
export const arbundles = expObj;
export const bundles = expObj;
2 changes: 1 addition & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,6 @@ module.exports = {
filename: "bundle.js",
path: path.resolve(__dirname, "./build/web/"),
libraryTarget: "umd",
library: "Arbundles",
library: "bundles",
},
};

0 comments on commit 0c2d365

Please sign in to comment.