Skip to content

Commit ecf6780

Browse files
committed
doc: Explain why we need those polyfills
1 parent 63aea7d commit ecf6780

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/polyfill.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@ import { Registry } from 'vs/platform/registry/common/platform'
2323
import { Extensions, IConfigurationRegistry } from 'vs/platform/configuration/common/configurationRegistry'
2424
import { StandaloneConfigurationService } from 'vs/editor/standalone/browser/standaloneServices'
2525
import { IConfigurationModel } from 'vs/platform/configuration/common/configuration'
26+
27+
// Monaco build process treeshaking is very aggressive and everything that is not used in monaco is removed
28+
// Unfortunately, it makes some class not respect anymore the interface they are supposed to implement
29+
// In this file we are restoring some method that are treeshaked out of monaco-editor but that are needed in this library
30+
2631
StandaloneConfigurationService.prototype.getConfigurationData ??= () => {
2732
const emptyModel: IConfigurationModel = {
2833
contents: {},

0 commit comments

Comments
 (0)