diff --git a/README.md b/README.md index 5b270f90ea..1c0c006a06 100644 --- a/README.md +++ b/README.md @@ -117,6 +117,7 @@ For older browsers and platforms (Internet Explorer, Android 4.x, iOS v12 and ol * [`element.prototype.classList` (`add`/`remove`)](https://caniuse.com/#feat=classlist): Available from [polyfill.io](https://polyfill.io/). * [`URL` API](https://caniuse.com/#feat=url): Available from [polyfill.io](https://polyfill.io/). * [`TextDecoder`](https://caniuse.com/#feat=textencoder): Available from [polyfill.io](https://polyfill.io/). +* [`Number.isInteger`](https://caniuse.com/#feat=isInteger): Available from [polyfill.io](https://polyfill.io/). * [Pointer events](https://caniuse.com/#feat=pointer): Use [elm-pep](https://npmjs.com/package/elm-pep) (lightweight) or [pepjs](https://npmjs.com/package/pepjs) (for really, really old browsers). ## Documentation diff --git a/examples/templates/example.html b/examples/templates/example.html index c20984a245..4562431e01 100644 --- a/examples/templates/example.html +++ b/examples/templates/example.html @@ -68,7 +68,7 @@ - + {{{ extraHead.local }}} {{{ css.tag }}} {{ title }} diff --git a/examples/webpack/config.js b/examples/webpack/config.js index 3a88540c38..8e2efac50e 100644 --- a/examples/webpack/config.js +++ b/examples/webpack/config.js @@ -27,18 +27,31 @@ module.exports = { test: /^((?!es2015-)[\s\S])*\.js$/, use: { loader: 'buble-loader', + options: { + transforms: { + dangerousForOf: true, + }, + }, }, include: [ path.join(__dirname, '..', '..', 'src'), path.join(__dirname, '..'), + path.join( + __dirname, + '..', + '..', + 'node_modules', + '@mapbox', + 'mapbox-gl-style-spec' + ), ], }, { test: /\.js$/, use: { - loader: path.join(__dirname, './worker-loader.js'), + loader: path.join(__dirname, 'worker-loader.js'), }, - include: [path.join(__dirname, '../../src/ol/worker')], + include: [path.join(__dirname, '..', '..', 'src', 'ol', 'worker')], }, ], },