typebot.io icon indicating copy to clipboard operation
typebot.io copied to clipboard

Bundle the JS library within the build

Open Lanhild opened this issue 1 year ago • 0 comments

Is your feature request related to a problem? Please describe. It would be very useful to have the JS embed library bundled within the build. This would allow self-hosters to import the library from their own instance, and not from npm.

Describe the solution you'd like When you want to embed a bot in your website, instead of using import Typebot from 'https://cdn.jsdelivr.net/npm/@typebot.io/[email protected]/dist/web.js';, you would be able to use import Typebot from 'https://typebot.example.com/@typebot.io/js/dist/web.js';.

This wouldbe ideal as it makes no external connections (use your own instance to import the script in your website, rather than NPM)

Lanhild avatar Sep 11 '24 17:09 Lanhild