tailwind-preset-mantine 4.0.1 → 4.0.2
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/package.json +1 -1
- package/src/core/theme-loader.js +2 -1
package/package.json
CHANGED
package/src/core/theme-loader.js
CHANGED
|
@@ -9,6 +9,7 @@ const THIS_FILE = fileURLToPath(import.meta.url);
|
|
|
9
9
|
const CHILD_RESULT_MARKER = "__TWPM_THEME_RESULT__";
|
|
10
10
|
const require = nodeModule.createRequire(import.meta.url);
|
|
11
11
|
const TSX_LOADER_PATH = require.resolve("tsx");
|
|
12
|
+
const TSX_LOADER_URL = pathToFileURL(TSX_LOADER_PATH).href;
|
|
12
13
|
const STYLE_EXTENSIONS = [
|
|
13
14
|
".css",
|
|
14
15
|
".scss",
|
|
@@ -139,7 +140,7 @@ async function loadThemeFromFileInProcess(themePath, baseDir = process.cwd()) {
|
|
|
139
140
|
export async function loadThemeFromFile(themePath, baseDir = process.cwd()) {
|
|
140
141
|
const { stdout } = await execFile(
|
|
141
142
|
process.execPath,
|
|
142
|
-
["--import",
|
|
143
|
+
["--import", TSX_LOADER_URL, THIS_FILE, "--child", themePath, baseDir],
|
|
143
144
|
{
|
|
144
145
|
cwd: resolve(baseDir),
|
|
145
146
|
maxBuffer: 5 * 1024 * 1024,
|