Skip to content

Add UMD build configuration for web entry point#284

Merged
HenryHengZJ merged 2 commits into
FlowiseAI:mainfrom
sunnymodi21:chore-add-umd-in-build-config
Jan 22, 2025
Merged

Add UMD build configuration for web entry point#284
HenryHengZJ merged 2 commits into
FlowiseAI:mainfrom
sunnymodi21:chore-add-umd-in-build-config

Conversation

@sunnymodi21

@sunnymodi21 sunnymodi21 commented Jan 5, 2025

Copy link
Copy Markdown
Contributor

This pull request includes a small change to the rollup.config.js file. The change adds a new configuration for the web.ts input file, which outputs a UMD module named.

@sunnymodi21 sunnymodi21 changed the title fix linting Add UMD build configuration for web entry point Jan 5, 2025
@HenryHengZJ

Copy link
Copy Markdown
Contributor

can you elaborate more on your use cases and why UMD is needed?

@sunnymodi21

Copy link
Copy Markdown
Contributor Author

I am using a external package to trigger the chat in the webpage via CustomJs. The issue is I don't have option to adjust the 'script' tag to add "type="module".
Example below:
image

@HenryHengZJ

Copy link
Copy Markdown
Contributor

awesome, thanks for explanation

@HenryHengZJ HenryHengZJ merged commit 5dd465b into FlowiseAI:main Jan 22, 2025
mandpd pushed a commit to mandpd/FlowiseChatEmbed that referenced this pull request Jul 24, 2025
…ild-config

Add UMD build configuration for web entry point
mandpd pushed a commit to mandpd/FlowiseChatEmbed that referenced this pull request Jul 24, 2025
…ild-config

Add UMD build configuration for web entry point
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.

2 participants