@udixio/theme 1.0.0-beta.30 → 1.0.0-beta.31

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/theme.esm.js CHANGED
@@ -1,7 +1,5 @@
1
1
  import { asClass, createContainer, InjectionMode } from 'awilix';
2
2
  import { lerp, Contrast, clampDouble, hexFromArgb, Hct, argbFromHex, TonalPalette, DislikeAnalyzer, sanitizeDegreesDouble } from '@material/material-color-utilities';
3
- import { resolve } from 'node:path';
4
- import { existsSync } from 'node:fs';
5
3
  import plugin from 'tailwindcss/plugin';
6
4
 
7
5
  var ColorService = /*#__PURE__*/function () {
@@ -1545,14 +1543,18 @@ var ConfigService = /*#__PURE__*/function () {
1545
1543
  };
1546
1544
  _proto.getConfig = function getConfig() {
1547
1545
  if (typeof process !== 'undefined' && process.release && process.release.name === 'node') {
1548
- var base = resolve(this.configPath);
1546
+ // eslint-disable-next-line @typescript-eslint/no-var-requires
1547
+ var path = require('path');
1548
+ // eslint-disable-next-line @typescript-eslint/no-var-requires
1549
+ var fs = require('fs');
1550
+ var base = path.resolve(this.configPath);
1549
1551
  var extensions = ['.js', '.ts', '.jms', '.jcs'];
1550
1552
  var configImport = null;
1551
1553
  for (var _i = 0, _extensions = extensions; _i < _extensions.length; _i++) {
1552
1554
  var ext = _extensions[_i];
1553
- var path = base + ext;
1554
- if (existsSync(path)) {
1555
- configImport = require(path);
1555
+ var _path = base + ext;
1556
+ if (fs.existsSync(_path)) {
1557
+ configImport = require(_path);
1556
1558
  break;
1557
1559
  }
1558
1560
  }