Skip to content

Commit

Permalink
Change how babel-polyfills are included.
Browse files Browse the repository at this point in the history
  • Loading branch information
manthey committed Aug 23, 2018
1 parent ea79a1d commit f20e45d
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions src/polyfills.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
require('babel-polyfill');
2 changes: 1 addition & 1 deletion src/vendor.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* @license BSD-3-Clause
*/

require('babel-polyfill');
require('./polyfills');

var globals = {
d3: require('d3'),
Expand Down
2 changes: 1 addition & 1 deletion tests/test-common.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// General utilities that are made available to tests.

var $ = require('jquery');
var geo = require('../src');
var geo = require('./test-utils').geo;

module.exports = {
createOsmMap: function (mapOpts, osmOpts, notiles) {
Expand Down
2 changes: 1 addition & 1 deletion tests/test-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
/* exported waitForIt, closeToArray, closeToEqual, logCanvas2D, submitNote */
/* global CanvasRenderingContext2D */

require('babel-polyfill');
var $ = require('jquery');

require('../src/polyfills');
var geo = require('../src');
var bowser = require('bowser');

Expand Down
4 changes: 2 additions & 2 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ var merge = require('webpack-merge');

module.exports = merge(config, {
entry: {
'geo': './index.js',
'geo.min': './index.js'
'geo': ['./polyfills', './index.js'],
'geo.min': ['./polyfills', './index.js']
}
});

0 comments on commit f20e45d

Please sign in to comment.