0

I upgraded to node 8.5 and I'm using ES Modules... which require mjs... how do I add the mjs extension to the JavaScript syntax highlighter in Atom 1.20?

1 Answer 1

1

Source: https://atom.io/packages/file-types

Source: http://flight-manual.atom.io/using-atom/sections/basic-customization/#_customizing_language_recognition

config.cson

"*":
  core:
    customFileTypes:
        "source.js": [
          'mjs'
        ]
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.