Feat: Creating vite-plugin.js for boboko/core

This commit is contained in:
2026-09-28 08:41:48 +03:00
parent fd3bbbe7de
commit 667e2ea2e5
7 changed files with 207 additions and 7 deletions
+1
View File
@@ -13,6 +13,7 @@ import BbkPaymentController from './bbk-payment-controller'
// When this module moves to boboko-core this file ships with it unchanged;
// only that one import line in the host entry point differs per project.
export function registerCheckout(application) {
console.log('[@boboko/core] checkout module loaded from', import.meta.url, '- test 2')
application.register('bbk-add-to-cart', BbkAddToCartController)
application.register('bbk-box-now-locker', BbkBoxNowLockerController)
application.register('bbk-cart', BbkCartController)
+9
View File
@@ -0,0 +1,9 @@
// Single stable JS entry point for this package. A consuming app imports
// from here (vendor/boboko/core/resources/js/index.js), never from a path
// reaching into a specific module's internals — so this file's exports can
// grow or its modules' internal layout can change without breaking every
// consumer's own entry point.
//
// stoic_embed.js is not re-exported here: per its own docblock, it's a
// standalone vendored script meant to be included directly, not imported.
export { registerCheckout } from './checkout/index.js'