Monaco-editor: Create ES6-Compliant Distribution

Created on 12 Jul 2016  路  12Comments  路  Source: microsoft/monaco-editor

While AMD is useful, it can be a pain to use in modern web applications, especially those using Typescript.

It would be excellent for this project to support an ES6 Distribution so that the following syntax (or similar) can be used:
import * as monaco from 'monaco-editor'

This would greatly ease the difficulty of implementing this tool moving forward and also help it stay standards-compliant.

Edit: Grammar

feature-request integration

Most helpful comment

This should absolutely get top priority. Would love to be able to - sanely - use monaco in a TypeScript environment.

All 12 comments

This would be preferable to existing solutions. We're using Meteor and using AMD modules results in conflict with other modules sometimes. Can @alexandrudima or someone else from the team explain why this would be difficult to integrate as labeled?

Sorry, I struggled with the label name.

I tried to classify issues that concern how easy/difficult it is for the editor to be consumed/integrated.

Can we expect an update on this soon? Unfortunately, I'm not very familiar with module loading approaches, so I won't be a great help here when it comes to contributions... however, since this issue is a couple of months old, I'm wondering if there's any progress here.

Otherwise I'll see if there are other alternatives. But I think too that for Monaco's adoption, getting rid off AMD dependency is a good idea.

This should absolutely get top priority. Would love to be able to - sanely - use monaco in a TypeScript environment.

Any updates on this?

+1

+1

+1

+1

+1

I think the one of the main reasons monaco is AMD based is probably because how it handles Workers. monaco internally uses require.toUrl to resolve paths to worker files. It'd huge progress towards this goal if monaco "outsources" this mechanism instead of doing it by itself.

Done with #18

Was this page helpful?
0 / 5 - 0 ratings

Related issues

andreymarchenko picture andreymarchenko  路  3Comments

brandalorian picture brandalorian  路  3Comments

akosyakov picture akosyakov  路  3Comments

zeegin picture zeegin  路  3Comments

fabiospampinato picture fabiospampinato  路  3Comments