Skip to content

Commit e32d920

Browse files
committed
v14.6.15
1 parent aa992e6 commit e32d920

File tree

8 files changed

+30
-12
lines changed

8 files changed

+30
-12
lines changed

build/browser/index.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/cjs/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/esm/index.mjs

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

demo/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Gleap.setFrameUrl("http://0.0.0.0:3001");
44
Gleap.setApiUrl("http://0.0.0.0:9000");
55
Gleap.setWSApiUrl("ws://0.0.0.0:9000");
66

7-
Gleap.initialize("SWDRYt539LLdlWtMLGYVos7oIAbWQPbX");
7+
Gleap.initialize("ogWhNhuiZcGWrva5nlDS8l7a78OfaLlV");
88

99
// const lastMonthDate = new Date();
1010
// lastMonthDate.setMonth(lastMonthDate.getMonth() - 1);

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "gleap",
3-
"version": "14.6.14",
3+
"version": "14.6.15",
44
"main": "build/cjs/index.js",
55
"module": "build/esm/index.mjs",
66
"exports": {

published/14.6.15/index.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

published/latest/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

webpack.config.js

Lines changed: 23 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const copyBuildPlugin = {
88
compiler.hooks.afterEmit.tap("AfterEmitPlugin", (compilation) => {
99
const nodeVersion = process.env.npm_package_version;
1010
return exec(
11-
`mkdir -p published/${nodeVersion} & mkdir -p published/latest & cp ./build/cjs/index.js published/${nodeVersion}/index.js & cp ./build/cjs/index.js published/latest/index.js`,
11+
`mkdir -p published/${nodeVersion} & mkdir -p published/latest & cp ./build/browser/index.js published/${nodeVersion}/index.js & cp ./build/browser/index.js published/latest/index.js`,
1212
(err, stdout, stderr) => {
1313
if (stdout) process.stdout.write(stdout);
1414
if (stderr) process.stderr.write(stderr);
@@ -75,14 +75,14 @@ const commonConfig = (isDevelopment, plugins = []) => {
7575
compress: true,
7676
open: true,
7777
hot: true,
78-
host: '0.0.0.0',
78+
host: "0.0.0.0",
7979
static: [
8080
{
81-
directory: path.join(__dirname, 'demo'),
81+
directory: path.join(__dirname, "demo"),
8282
},
8383
{
84-
directory: path.join(__dirname, 'build'),
85-
publicPath: '/build',
84+
directory: path.join(__dirname, "build"),
85+
publicPath: "/build",
8686
},
8787
],
8888
port: 4444,
@@ -123,6 +123,22 @@ const cjsConfig = {
123123
},
124124
};
125125

126+
// Configuration for browser
127+
const browserConfig = {
128+
...commonConfig(false, [copyBuildPlugin]),
129+
output: {
130+
path: path.resolve(__dirname, "build/browser"),
131+
filename: "[name].js",
132+
library: {
133+
name: "Gleap",
134+
type: "assign",
135+
export: "default",
136+
},
137+
globalObject: "typeof self !== 'undefined' ? self : this",
138+
clean: true,
139+
},
140+
};
141+
126142
const developmentConfig = {
127143
...commonConfig(true, []),
128144
// ... additional development-specific settings ...
@@ -132,6 +148,6 @@ module.exports = (env) => {
132148
if (env && env.development) {
133149
return developmentConfig;
134150
} else {
135-
return [esmConfig, cjsConfig];
151+
return [esmConfig, cjsConfig, browserConfig];
136152
}
137-
};
153+
};

0 commit comments

Comments
 (0)