Skip to content

Commit

Permalink
documentation
Browse files Browse the repository at this point in the history
the compatibility section should more clearly explain that projects built with Rollup are already compatible with CommonJS systems
  • Loading branch information
vijithassar committed Mar 5, 2017
1 parent 49ac9e2 commit 007c264
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -81,7 +81,7 @@ Rollup can import existing CommonJS modules [through a plugin](https://github.co

### Publishing ES6 Modules

If your `package.json` has a `module` field, ES6-aware tools like Rollup and [webpack 2](https://webpack.js.org/) can [import the ES6 module version of the package](https://github.com/rollup/rollup/wiki/pkg.module) directly, instead of relying on the legacy CommonJS version.
To make sure your ES6 modules are immediately usable by tools that work with CommonJS such as Node.js and webpack, you can use Rollup to compile to UMD or CommonJS format, and then point to that compiled version with the `main` property in your `package.json` file. If your `package.json` file also has a `module` field, ES6-aware tools like Rollup and [webpack 2](https://webpack.js.org/) will [import the ES6 module version](https://github.com/rollup/rollup/wiki/pkg.module) directly.

###

Expand Down

0 comments on commit 007c264

Please sign in to comment.