Skip to content
This repository was archived by the owner on Apr 14, 2021. It is now read-only.

Commit 5fe77ee

Browse files
authored
Fixes #185: browserify does not support require.ensure
1 parent f42df62 commit 5fe77ee

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ if (global.Intl) {
6969
### Intl.js and Browserify/webpack
7070

7171
If you build your application using [browserify][] or [webpack][], you will install `intl` npm package as a dependency of your application. Ideally, you will avoid loading this library if the browser supports the
72-
built-in `Intl`. An example of conditional usage using [browserify][] or [webpack][] _might_ look like this:
72+
built-in `Intl`. An example of conditional usage using [webpack][] _might_ look like this:
7373

7474
```javascript
7575
function runMyApp() {
@@ -90,6 +90,8 @@ if (!global.Intl) {
9090
}
9191
```
9292

93+
_note: a similar approach can be implemented with [browserify][], althought it does not support `require.ensure`._
94+
9395
_note: the locale data is required for the polyfill to function when using it in a browser environment, in the example above, the english (`en`) locale is being required along with the polyfill itself._
9496

9597
[webpack]: https://webpack.github.io/

0 commit comments

Comments
 (0)