Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(build): Patch Astro for underscore issue, again
- Loading branch information
1 parent
d2e47ce
commit 2dd6593
Showing
4 changed files
with
99 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
diff --git a/dist/content/vite-plugin-content-virtual-mod.js b/dist/content/vite-plugin-content-virtual-mod.js | ||
index 37fad4848076936df3e3dfad2c3385c0fe3fd54e..278baeadc06a220ac6e466f76a133de7df31022b 100644 | ||
--- a/dist/content/vite-plugin-content-virtual-mod.js | ||
+++ b/dist/content/vite-plugin-content-virtual-mod.js | ||
@@ -4,19 +4,18 @@ import { extname } from "node:path"; | ||
import { fileURLToPath, pathToFileURL } from "node:url"; | ||
import pLimit from "p-limit"; | ||
import { AstroError, AstroErrorData } from "../core/errors/index.js"; | ||
-import { appendForwardSlash } from "../core/path.js"; | ||
import { rootRelativePath } from "../core/util.js"; | ||
import { VIRTUAL_MODULE_ID } from "./consts.js"; | ||
import { | ||
- getContentEntryIdAndSlug, | ||
- getContentPaths, | ||
- getDataEntryExts, | ||
- getDataEntryId, | ||
- getEntryCollectionName, | ||
- getEntryConfigByExtMap, | ||
- getEntrySlug, | ||
- getEntryType, | ||
- getExtGlob | ||
+ getContentEntryIdAndSlug, | ||
+ getContentPaths, | ||
+ getDataEntryExts, | ||
+ getDataEntryId, | ||
+ getEntryCollectionName, | ||
+ getEntryConfigByExtMap, | ||
+ getEntrySlug, | ||
+ getEntryType, | ||
+ getExtGlob | ||
} from "./utils.js"; | ||
function astroContentVirtualModPlugin({ | ||
settings | ||
@@ -165,14 +164,14 @@ const UnexpectedLookupMapError = new AstroError({ | ||
}); | ||
function globWithUnderscoresIgnored(relContentDir, exts) { | ||
const extGlob = getExtGlob(exts); | ||
- const contentDir = appendForwardSlash(relContentDir); | ||
return [ | ||
- `${contentDir}**/*${extGlob}`, | ||
- `!${contentDir}_*/**${extGlob}`, | ||
- `!${contentDir}_*${extGlob}` | ||
+ `${relContentDir}/**/*${extGlob}`, | ||
+ `!**/_*/**${extGlob}`, | ||
+ `!**/_*${extGlob}`, | ||
]; | ||
} | ||
export { | ||
- astroContentVirtualModPlugin, | ||
- getStringifiedLookupMap | ||
+ astroContentVirtualModPlugin, | ||
+ getStringifiedLookupMap | ||
}; | ||
+ |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.