@adobe-commerce/elsie 1.2.1-alpha56 → 1.2.1-alpha57
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/config/vite.mjs +5 -12
- package/package.json +1 -1
package/config/vite.mjs
CHANGED
|
@@ -25,18 +25,11 @@ import banner from 'vite-plugin-banner';
|
|
|
25
25
|
const env = loadEnv('', process.cwd());
|
|
26
26
|
|
|
27
27
|
// Load Elsie Config
|
|
28
|
-
const elsieConfig = await import(
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
const packageJSON =
|
|
33
|
-
path.resolve(process.cwd(), './package.json'),
|
|
34
|
-
{
|
|
35
|
-
assert: {
|
|
36
|
-
type: 'json',
|
|
37
|
-
},
|
|
38
|
-
}
|
|
39
|
-
).then((m) => m.default);
|
|
28
|
+
const elsieConfig = await import(path.resolve(process.cwd(), './.elsie.js')).then((m) => m.default);
|
|
29
|
+
|
|
30
|
+
// Read package.json using createRequire (compatible with Node 20 and 22)
|
|
31
|
+
const require = createRequire(import.meta.url);
|
|
32
|
+
const packageJSON = require(path.resolve(process.cwd(), './package.json'));
|
|
40
33
|
|
|
41
34
|
// Paths
|
|
42
35
|
const paths = {
|