Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix build entry and module path for browser #27

Merged
merged 4 commits into from
Feb 14, 2018
Merged

Conversation

yhatt
Copy link
Owner

@yhatt yhatt commented Feb 14, 2018

We have made 2 sad mistakes. 馃槆

First: This plugin could never used with any bundler for browser (Browserify, webpack etc). require('markdown-it-incremental-dom') would return undefined. Who did disable eslint rule of prefer-default-export? It's me 馃檭

Second: Removed browser field in package.json. The bundler for browser respects this field but JS is already bundled. We should provide ES5 module by main field.

Of course we would be continue providing build for browser. (dist/markdown-it-incremental-dom[.min].js)

Many bundlers for browser (Browserify, webpack etc) would respect
the browser field in package.json. But these bundler should use ES5
module.
@yhatt yhatt merged commit dad77f7 into master Feb 14, 2018
@yhatt yhatt deleted the fix-for-browser-bundler branch February 14, 2018 12:10
@yhatt yhatt added bug and removed bug labels Feb 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant