OscarGodson / EpicEditor

EpicEditor is an embeddable JavaScript Markdown editor with split fullscreen editing, live previewing, automatic draft saving, offline support, and more. For developers, it offers a robust API, can be easily themed, and allows you to swap out the bundled Markdown parser with anything you throw at it.
http://epiceditor.com
MIT License
4.25k stars 338 forks source link

Added 'main' to point to build JS. #388

Closed samkelleher closed 8 years ago

samkelleher commented 8 years ago

Resolves #387

When using NPM as the method to install EpicEditor, and then building the application (using WebPack for example), the main entry point JS file is not resolved.

Ie. These don't work.

var EpicEditor = require('epiceditor');
import EpicEditor from 'epiceditor';

The package.json is missing the main declaration that tells the builder which is the entrypoint file.