mirror of
https://github.com/visgl/react-map-gl.git
synced 2026-01-18 15:54:22 +00:00
19 lines
403 B
JavaScript
19 lines
403 B
JavaScript
const config = require('./config');
|
|
const path = require('path');
|
|
|
|
// transpile mapbox-gl utils imported by react-map-gl@2
|
|
// these files are ES6 and break UglifyJS
|
|
config.module.rules.push({
|
|
test: /node_modules\/mapbox-gl\/js.*\.js$/,
|
|
loader: 'babel-loader'
|
|
});
|
|
|
|
module.exports = Object.assign(config, {
|
|
|
|
output: {
|
|
path: path.resolve(__dirname, '../dist'),
|
|
filename: 'bundle.js'
|
|
}
|
|
|
|
});
|