Skip to content

Commit ca1bea7

Browse files
authored
Merge pull request #69 from msgpack/umd
bundle dis.es5 as umd
2 parents 2947a75 + 69df12d commit ca1bea7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

webpack.config.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ const config = {
1212
entry: "./src/index.ts",
1313
output: {
1414
path: path.resolve(__dirname, "dist.es5"),
15-
libraryTarget: "commonjs",
15+
libraryTarget: "umd",
16+
globalObject: "this",
1617
},
1718
resolve: {
1819
extensions: [".ts", ".tsx", ".mjs", ".js", ".json", ".wasm"],
@@ -37,6 +38,7 @@ const config = {
3738
externals: {
3839
"base64-js": {
3940
commonjs: "base64-js",
41+
commonjs2: "base64-js",
4042
},
4143
},
4244

0 commit comments

Comments
 (0)