feat(plugin-infra): esm simulation in browser (#3464)

This commit is contained in:
Alex Yang
2023-07-29 19:23:00 -07:00
committed by GitHub
parent 765efd19da
commit 00a41b95b9
5 changed files with 441 additions and 217 deletions

View File

@@ -7,6 +7,7 @@ import { DetailContent } from './UI/detail-content';
import { HeaderItem } from './UI/header-item';
export const entry = (context: PluginContext) => {
console.log('copilot entry');
context.register('headerItem', div => {
const root = createRoot(div);
root.render(