// deck.gl // SPDX-License-Identifier: MIT // Copyright (c) vis.gl contributors // NOTE: To use this example standalone (e.g. outside of deck.gl repo) // delete the local development overrides at the bottom of this file // avoid destructuring for older Node version support const resolve = require('path').resolve; const CONFIG = { entry: { app: resolve('./app.js') }, devtool: 'source-map', output: { path: resolve('./dist'), filename: 'bundle.js' }, module: { rules: [ { // Compile ES2015 using buble test: /\.js$/, // test: /^((?!graph-layer).)*\.js$/, loader: 'buble-loader', include: [resolve('.')], exclude: [/node_modules/], options: { objectAssign: 'Object.assign' } } ] } }; // This line enables bundling against src in this repo rather than installed deck.gl module module.exports = env => (env ? require('../../examples/webpack.config.local')(CONFIG)(env) : CONFIG);