Feat: Creating vite-plugin.js for boboko/core
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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'
|
||||
Reference in New Issue
Block a user