这是我的笔:https ://codepen.io/danmichaelo/pen/rNGeEKK
导入对等依赖项@sanity/ui
工作正常:
import React from "https://cdn.skypack.dev/react@17";
import * as ReactDOM from "https://cdn.skypack.dev/react-dom@17";
import * as styledComponents from "https://cdn.skypack.dev/styled-components@5.3.3";
但是一旦我添加@sanity/ui
到混合中,我会得到一个死机白屏(没有实际使用它,导入它就足够了):
import * as SanityUi from "https://cdn.skypack.dev/@sanity/ui@0.36.17";
我应该使用另一个 URL 吗?