// CommonJS wrapper for style-dictionary ES module
let StyleDictionary;
let referenceUtils;

async function loadStyleDictionary() {
    if (!StyleDictionary) {
        const module = await import('style-dictionary');
        StyleDictionary = module.default;
    }
    return StyleDictionary;
}

async function loadReferenceUtils() {
    if (!referenceUtils) {
        referenceUtils = await import('style-dictionary/utils');
    }
    return referenceUtils;
}

module.exports = { loadStyleDictionary, loadReferenceUtils }; 