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