Legacy build for legacy browsers
This commit is contained in:
@@ -3,6 +3,28 @@ module.exports = {
|
|||||||
entry: './build/index.js',
|
entry: './build/index.js',
|
||||||
devtool: 'source-map',
|
devtool: 'source-map',
|
||||||
mode: 'production',
|
mode: 'production',
|
||||||
|
module: {
|
||||||
|
rules: [
|
||||||
|
{
|
||||||
|
test: /^((?!es2015-)[\s\S])*\.js$/,
|
||||||
|
use: {
|
||||||
|
loader: 'buble-loader',
|
||||||
|
options: {
|
||||||
|
transforms: {dangerousForOf: true},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
include: [
|
||||||
|
path.join(
|
||||||
|
__dirname,
|
||||||
|
'..',
|
||||||
|
'node_modules',
|
||||||
|
'@mapbox',
|
||||||
|
'mapbox-gl-style-spec'
|
||||||
|
),
|
||||||
|
],
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
resolve: {
|
resolve: {
|
||||||
alias: {
|
alias: {
|
||||||
ol: path.resolve('./build/ol'),
|
ol: path.resolve('./build/ol'),
|
||||||
|
|||||||
Reference in New Issue
Block a user