19 lines
354 B
JavaScript
19 lines
354 B
JavaScript
let daisyui = null;
|
|
|
|
try {
|
|
daisyui = require('daisyui');
|
|
} catch (e) { }
|
|
|
|
if (daisyui == null) {
|
|
try {
|
|
daisyui = require(`${process.env.DAISYUI_PATH}/daisyui.js`);
|
|
} catch (e) { }
|
|
}
|
|
|
|
if (daisyui == null) {
|
|
console.error('Could not find DaisyUI');
|
|
throw new Error('Could not find DaisyUI');
|
|
}
|
|
|
|
export default daisyui.default || daisyui;
|