Skip to content

Conversation

@marcin-cebo
Copy link
Contributor

No description provided.

@pubnub-ops-terraform
Copy link
Contributor

pubnub-ops-terraform commented Dec 5, 2025

Snyk checks have passed. No issues have been found so far.

Status Scanner Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues
Licenses 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

input: "./main.mjs",
external: [], // Bundle everything
output: {
file: `dist/pubnub-chat.${pkg.version}.js`,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we move both bundles to a separate folder?
Separate folder like: upload not related to the NPM distribution + less chances to drag something unwanted to the CDN.

So far I've configured CDN upload artifacts location to the: js-chat/upload/*.js

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, I will move it.

browser: true,
preferBuiltins: false
}),
commonjs()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If it possible, can we compress (gzip) both bundles with @rollup/plugin-typescript?
In JS SDK it goes after last plugin, to work on the resulting bundle like this:

gzipPlugin({ fileName: '' }),

imported it with require:

const gzipPlugin = require('rollup-plugin-gzip').default;

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will compress them.

Copy link
Contributor

@parfeon parfeon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@marcin-cebo marcin-cebo changed the title Added JS build for CDN with JS core bundled Added gzipped JS build for CDN with JS core bundled Dec 8, 2025
@marcin-cebo marcin-cebo merged commit 1f8f0b7 into master Dec 8, 2025
5 checks passed
@marcin-cebo marcin-cebo deleted the mc/add_JS_build_for_CDN_withJsCoreBundled branch December 8, 2025 15:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants