We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f939d03 commit 5086fdaCopy full SHA for 5086fda
webpack.config.ts
@@ -4,13 +4,15 @@ import _ from "lodash";
4
// @ts-expect-error
5
import { CheckEsVersionPlugin } from "@bitjourney/check-es-version-webpack-plugin";
6
7
+const dirname = typeof __dirname === "undefined" ? import.meta.dirname : __dirname;
8
+
9
const config = {
10
mode: "production",
11
12
entry: "./src/index.ts",
13
target: ["web", "es5"],
14
output: {
- path: path.resolve(import.meta.dirname, "dist.es5+umd"),
15
+ path: path.resolve(dirname, "dist.es5+umd"),
16
library: "MessagePack",
17
libraryTarget: "umd",
18
globalObject: "this",
0 commit comments