From 879893bf57e4dfc603ea5b189553aaade03272c6 Mon Sep 17 00:00:00 2001 From: Benny Powers Date: Sun, 22 Oct 2023 14:01:47 +0300 Subject: [PATCH] docs: import maps for playgrounds --- docs/_data/playgrounds.cjs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/docs/_data/playgrounds.cjs b/docs/_data/playgrounds.cjs index 39c3aa6b04..4f284fe50f 100644 --- a/docs/_data/playgrounds.cjs +++ b/docs/_data/playgrounds.cjs @@ -162,7 +162,14 @@ module.exports = async function(data) { } const files = Object.fromEntries(fileMap.entries()); - playgroundConfigsMap.set(primaryElementName, { files }); + playgroundConfigsMap.set(primaryElementName, { + files, + importMap: { + imports: { + '@rhds/elements/': 'https://ux.redhat.com/assets/packages/@rhds/elements/' + } + } + }); } } const config = Object.fromEntries(playgroundConfigsMap.entries());