feat(cli): support import of .md files

Signed-off-by: Phil Kuang <pkuang@factset.com>
This commit is contained in:
Phil Kuang
2023-03-13 15:54:23 -04:00
parent 80698c1de8
commit 79e91d4c30
4 changed files with 12 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/cli': patch
---
Support importing `.md` files in build loader
+1
View File
@@ -505,6 +505,7 @@ of all supported file extensions:
| `.jpg` | URL Path | Image |
| `.png` | URL Path | Image |
| `.svg` | URL Path | Image |
| `.md` | URL Path | Markdown File |
| `.icon.svg` | React Component | SVG converted into a [MUI SvgIcon](https://mui.com/components/icons/#svgicon) |
## Jest Configuration
+5
View File
@@ -40,6 +40,11 @@ declare module '*.jpeg' {
export default src;
}
declare module '*.md' {
const src: string;
export default src;
}
declare module '*.png' {
const src: string;
export default src;
+1
View File
@@ -132,6 +132,7 @@ export async function makeRollupConfigs(
/\.woff$/,
/\.woff2$/,
/\.ttf$/,
/\.md$/,
],
}),
json(),