Skip to content

Commit d0a39f1

Browse files
authored
workaround to remove module "@emotion/is-prop-valid" not found in esm cdn example (#4072)
* workaround to remove `module "@emotion/is-prop-valid" not found` in esm cdn example * Update index.html * Update examples/graphiql-cdn/index.html * Update index.html
1 parent 8917cad commit d0a39f1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

examples/graphiql-cdn/index.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
href="https://esm.sh/@graphiql/plugin-explorer/dist/style.css"
3535
/>
3636
<!-- Note: the ?standalone flag bundles the module along with all of its `dependencies`, excluding `peerDependencies`, into a single JavaScript file. -->
37+
<!-- `@emotion/is-prop-valid` is a shim to remove the console error `module "@emotion /is-prop-valid" not found`. Upstream issue: https://github.com/motiondivision/motion/issues/3126 -->
3738
<script type="importmap">
3839
{
3940
"imports": {
@@ -42,10 +43,11 @@
4243

4344
"react-dom": "https://esm.sh/[email protected]",
4445
"react-dom/client": "https://esm.sh/[email protected]/client",
46+
"@emotion/is-prop-valid": "data:text/javascript,",
4547

4648
"graphiql": "https://esm.sh/graphiql?standalone&external=react,react-dom,@graphiql/react,graphql",
4749
"@graphiql/plugin-explorer": "https://esm.sh/@graphiql/plugin-explorer?standalone&external=react,@graphiql/react,graphql",
48-
"@graphiql/react": "https://esm.sh/@graphiql/react?standalone&external=react,react-dom,graphql",
50+
"@graphiql/react": "https://esm.sh/@graphiql/react?standalone&external=react,react-dom,graphql,@emotion/is-prop-valid",
4951

5052
"@graphiql/toolkit": "https://esm.sh/@graphiql/toolkit?standalone&external=graphql",
5153
"graphql": "https://esm.sh/[email protected]"

0 commit comments

Comments
 (0)