UNPKG

@onenexus/squery

Version:

Interact with Synergy modules/BEM DOM elements

18 lines (13 loc) 407 B
import sQuery from './squery'; import init from './utilities/init'; import * as API from './api'; // spoof env process to assist bundle size if (typeof process === 'undefined') window.process = { env: {} }; sQuery.init = init.bind(API); for (let entry of Object.entries(API)) { sQuery[entry[0]] = entry[1]; } if (typeof window !== 'undefined') { window.sQuery = sQuery; } export default sQuery;