@posthog/webpack-plugin 1.0.2 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/config.js +1 -1
- package/dist/config.mjs +4 -1
- package/package.json +3 -3
- package/src/config.ts +1 -1
package/README.md
CHANGED
package/dist/config.js
CHANGED
|
@@ -35,7 +35,7 @@ function resolveConfig(options) {
|
|
|
35
35
|
var _process_env_PATH, _options_cliBinaryPath;
|
|
36
36
|
const cliBinaryPath = null != (_options_cliBinaryPath = options.cliBinaryPath) ? _options_cliBinaryPath : (0, process_namespaceObject.resolveBinaryPath)('posthog-cli', {
|
|
37
37
|
path: null != (_process_env_PATH = process.env.PATH) ? _process_env_PATH : '',
|
|
38
|
-
cwd:
|
|
38
|
+
cwd: __dirname
|
|
39
39
|
});
|
|
40
40
|
var _options_sourcemaps;
|
|
41
41
|
const sourcemaps = null != (_options_sourcemaps = options.sourcemaps) ? _options_sourcemaps : {};
|
package/dist/config.mjs
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
|
+
import { fileURLToPath as __webpack_fileURLToPath__ } from "node:url";
|
|
2
|
+
import { dirname as __webpack_dirname__ } from "node:path";
|
|
1
3
|
import { resolveBinaryPath } from "@posthog/core/process";
|
|
4
|
+
var config_dirname = __webpack_dirname__(__webpack_fileURLToPath__(import.meta.url));
|
|
2
5
|
function resolveConfig(options) {
|
|
3
6
|
var _options_host;
|
|
4
7
|
const host = null != (_options_host = options.host) ? _options_host : 'https://us.i.posthog.com';
|
|
@@ -7,7 +10,7 @@ function resolveConfig(options) {
|
|
|
7
10
|
var _process_env_PATH, _options_cliBinaryPath;
|
|
8
11
|
const cliBinaryPath = null != (_options_cliBinaryPath = options.cliBinaryPath) ? _options_cliBinaryPath : resolveBinaryPath('posthog-cli', {
|
|
9
12
|
path: null != (_process_env_PATH = process.env.PATH) ? _process_env_PATH : '',
|
|
10
|
-
cwd:
|
|
13
|
+
cwd: config_dirname
|
|
11
14
|
});
|
|
12
15
|
var _options_sourcemaps;
|
|
13
16
|
const sourcemaps = null != (_options_sourcemaps = options.sourcemaps) ? _options_sourcemaps : {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@posthog/webpack-plugin",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.1",
|
|
4
4
|
"description": "Webpack plugin for Posthog 🦔",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"types": "./dist/index.d.ts",
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@posthog/cli": "~0.5.13",
|
|
20
|
-
"@posthog/core": "1.
|
|
20
|
+
"@posthog/core": "1.6.0"
|
|
21
21
|
},
|
|
22
22
|
"files": [
|
|
23
23
|
"dist",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"@rslib/core": "0.10.6",
|
|
28
28
|
"jest": "29.7.0",
|
|
29
29
|
"webpack": "^5.102.1",
|
|
30
|
-
"@posthog-tooling/tsconfig-base": "1.
|
|
30
|
+
"@posthog-tooling/tsconfig-base": "1.1.0"
|
|
31
31
|
},
|
|
32
32
|
"exports": {
|
|
33
33
|
".": {
|
package/src/config.ts
CHANGED
|
@@ -35,7 +35,7 @@ export function resolveConfig(options: PluginConfig): ResolvedPluginConfig {
|
|
|
35
35
|
options.cliBinaryPath ??
|
|
36
36
|
resolveBinaryPath('posthog-cli', {
|
|
37
37
|
path: process.env.PATH ?? '',
|
|
38
|
-
cwd:
|
|
38
|
+
cwd: __dirname,
|
|
39
39
|
})
|
|
40
40
|
|
|
41
41
|
const sourcemaps = options.sourcemaps ?? {}
|