Make examples work with ie11

This commit is contained in:
Maximilian Krög
2020-12-29 17:55:41 +01:00
parent caeca7f5b8
commit 358d6736d1
3 changed files with 17 additions and 3 deletions

View File

@@ -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')],
},
],
},