Closed xianshenglu closed 1 week ago
I would consider this, though I think there are two pretty viable ways around it that are potentially better:
@tmcw Really thanks for the reminder. I found StateEffect.appendConfig
from your link which can solve my use case like below
function injectExtension(view, extension) {
view.dispatch({
effects: StateEffect.appendConfig.of(extension)
})
}
For sure the worker
version is a nicer way. I tried that in my angular project. It seems that there're some issues to make it work. More likely package issue.
If possible I'll try to raise the issues regarding worker in angular.
Problems:
When I'm trying to integrate this library I found the
typescript
is huge around 2.9mb.And codemirror@6 doesn't support add extensions async.
Feature:
So, I'm wondering if we can support loading async or not.
Proposal:
For example,
If the
env
isPromise<env>
in that case, we can do nothing untilenv
is loaded.What do you think?