Skip to content

Added support for ES modules by default#6

Merged
gucheen merged 3 commits intogucheen:masterfrom
kamleshchandnani:enhancement/es6-support-default
Nov 30, 2017
Merged

Added support for ES modules by default#6
gucheen merged 3 commits intogucheen:masterfrom
kamleshchandnani:enhancement/es6-support-default

Conversation

@kamleshchandnani
Copy link
Copy Markdown
Contributor

This PR addresses following things:

  1. ES modules are identified by bundlers like webpack/rollup by the module field in the package.json file.
  2. Modifiled .babelrc to transpile less as most of the features are supported by all moder browsers.
  3. By default the main file is pointing to lib/ folder so users just need to import fetchql from "fetchql" and based on the bundlers they are using the es module/cjs module will be picked up by default.

@gucheen
Copy link
Copy Markdown
Owner

gucheen commented Nov 30, 2017

Thanks! Support ES module should be a nice solution!

@gucheen gucheen merged commit 123e15c into gucheen:master Nov 30, 2017
@kamleshchandnani
Copy link
Copy Markdown
Contributor Author

@gucheen can we release the new version with ES changes?

@gucheen
Copy link
Copy Markdown
Owner

gucheen commented Nov 30, 2017

@kamleshchandnani Already released to v2.2.0

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.

2 participants