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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added support for ES modules by default #6

Merged

Conversation

kamleshchandnani
Copy link
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
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
Contributor Author

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

@gucheen
Copy link
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