Skip to content

Commit bc543cd

Browse files
committed
Changed wording.
1 parent 2e56113 commit bc543cd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,13 @@ bower install highcharts
4242
```
4343

4444
## Load Highcharts as a CommonJS module
45-
Highcharts uses a UMD (Universal Module Definition) module pattern, which provides support for CommonJS. However, starting from version 12, the module system has been simplified.
45+
Highcharts uses a UMD (Universal Module Definition) module pattern, which provides support for CommonJS. The module system is simplified, making it easier to load modules.
4646
*The following examples presumes you are using npm to install Highcharts, see [Download and install Highcharts](#download-and-install-highcharts) for more details.*
4747
```js
4848
// Load Highcharts
4949
const Highcharts = require('highcharts');
5050

51-
// Load the exporting module (no need to initialize explicitly from v12)
51+
// Load the exporting module (note that in v11 and prior it had to be initialized explicitly)
5252
require('highcharts/modules/exporting');
5353

5454
// Generate the chart
@@ -58,7 +58,7 @@ Highcharts.chart('container', {
5858
```
5959

6060
## Load Highcharts as an ES6 module
61-
Since Highcharts supports CommonJS, it can be loaded as an ES6 module with the use of transpilers. Two common transpilers are [Babel](https://babeljs.io/) and [TypeScript](https://www.typescriptlang.org/). These have different interpretations of a CommonJS module, which affects your syntax. With Highcharts v12, ES6 modules are supported out of the box without the need to initialize module factories.
61+
Since Highcharts supports CommonJS, it can be loaded as an ES6 module with the use of transpilers. Two common transpilers are [Babel](https://babeljs.io/) and [TypeScript](https://www.typescriptlang.org/). These have different interpretations of a CommonJS module, which affects your syntax. Prior to Highcharts v12, ES6 modules were not supported out of the box, and module factories had to be initialized explicitly.
6262
*The following examples presumes you are using npm to install Highcharts, see [Download and install Highcharts](#download-and-install-highcharts) for more details.*
6363
### Babel
6464
```js

0 commit comments

Comments
 (0)