Skip to content

What is bundle.js?

bundle.js is a pre-bundled JavaScript file provided by @bagisto-native/core.

It contains:

  1. Turbo / Hotwire: The core navigation library.
  2. Stimulus: The Javascript framework for HTML.
  3. Bridge Component Controllers: The logic files located in hotwire/controllers/ (e.g., ToastComponent, DynamicButtonComponent).
  4. Native Bridge Library: The @hotwired/hotwire-native-bridge code that handles the actual implementation of postMessage to iOS/Android.

When this file runs in a browser (or WebView), it initializes the window.Stimulus application and registers all the "bridge--" controllers.

Next Steps

Released under the MIT License.