Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否有可靠的方法来模拟 Polymer(或 vanilla Web 组件)中的导入依赖项? 我检查了这个问题和他们建议之前定义模拟自定义元素的其他资源。 虽然这种方法实际上会模拟自定义元素定义,但它不会阻止稍后导入原始 dep并执行其脚本! 这肯定会导致冲突、不一致和不需要的代码执行,其中依赖项不仅仅是定义一个元素。
将此作为相关主题进行检查