@yysng/astro-boilerplate 1.1.12 → 1.1.14
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
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
let
|
|
1
|
+
let contentRoot = null;
|
|
2
2
|
|
|
3
3
|
export function setContentRoot(path) {
|
|
4
|
-
|
|
4
|
+
contentRoot = path;
|
|
5
5
|
}
|
|
6
6
|
|
|
7
7
|
export function getContentRoot() {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
return CONTENT_ROOT;
|
|
8
|
+
// When running on edge, we no longer require filesystem root.
|
|
9
|
+
// Loader will use import.meta.glob instead.
|
|
10
|
+
return contentRoot;
|
|
12
11
|
}
|