Skip to content

Commit

Permalink
Remove destructuring from examples webpack configs so they run in Nod… (
Browse files Browse the repository at this point in the history
visgl#508)

* Remove destructuring from examples webpack configs so they run in Node < 6.
  • Loading branch information
ericsoco authored Mar 30, 2017
1 parent dc470c4 commit b40891a
Show file tree
Hide file tree
Showing 15 changed files with 67 additions and 15 deletions.
6 changes: 5 additions & 1 deletion examples/3d-heatmap/webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
const {resolve} = require('path');
// 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 webpack = require('webpack');

module.exports = {
Expand Down
6 changes: 5 additions & 1 deletion examples/arc/webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
const {resolve} = require('path');
// 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 webpack = require('webpack');

module.exports = {
Expand Down
6 changes: 5 additions & 1 deletion examples/geojson/webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
const {resolve} = require('path');
// 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 webpack = require('webpack');

module.exports = {
Expand Down
6 changes: 5 additions & 1 deletion examples/hello-world-webpack2/webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
const {resolve} = require('path');
// 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 webpack = require('webpack');

module.exports = {
Expand Down
6 changes: 5 additions & 1 deletion examples/icon/webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
const {resolve} = require('path');
// 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 webpack = require('webpack');

module.exports = {
Expand Down
6 changes: 5 additions & 1 deletion examples/jsx-layers/webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
const {resolve} = require('path');
// 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 webpack = require('webpack');

module.exports = {
Expand Down
4 changes: 3 additions & 1 deletion examples/layer-browser/webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// NOTE: To use this example standalone (e.g. outside of deck.gl repo)
// delete the local development overrides at the bottom of this file
const {resolve} = require('path');

// avoid destructuring for older Node version support
const resolve = require('path').resolve;
const webpack = require('webpack');

module.exports = {
Expand Down
6 changes: 5 additions & 1 deletion examples/line/webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
const {resolve} = require('path');
// 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 webpack = require('webpack');

module.exports = {
Expand Down
6 changes: 5 additions & 1 deletion examples/plot/webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
const {resolve} = require('path');
// 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 webpack = require('webpack');

module.exports = {
Expand Down
6 changes: 5 additions & 1 deletion examples/scatterplot/webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
const {resolve} = require('path');
// 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 webpack = require('webpack');

module.exports = {
Expand Down
6 changes: 5 additions & 1 deletion examples/screen-grid/webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
const {resolve} = require('path');
// 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 webpack = require('webpack');

module.exports = {
Expand Down
6 changes: 5 additions & 1 deletion examples/svg-interoperability/webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
const {resolve} = require('path');
// 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 webpack = require('webpack');

module.exports = {
Expand Down
3 changes: 2 additions & 1 deletion examples/tree-shaking/webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
const {resolve} = require('path');
// avoid destructuring for older Node version support
const resolve = require('path').resolve;
const webpack = require('webpack');

const CONFIG = {
Expand Down
6 changes: 5 additions & 1 deletion examples/trips/webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
const {resolve} = require('path');
// 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 webpack = require('webpack');

module.exports = {
Expand Down
3 changes: 2 additions & 1 deletion examples/webpack.config.local.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
// This enables using the examples to debug the main deck.gl library source
// without publishing or npm linking, with conveniences such hot reloading etc.

const {resolve} = require('path');
// avoid destructuring for older Node version support
const resolve = require('path').resolve;
const webpack = require('webpack');

const LIB_DIR = resolve(__dirname, '..');
Expand Down

0 comments on commit b40891a

Please sign in to comment.