diff --git a/examples/additional-overlays/webpack.config.js b/examples/additional-overlays/webpack.config.js index 886fa0342..7ce03831a 100644 --- a/examples/additional-overlays/webpack.config.js +++ b/examples/additional-overlays/webpack.config.js @@ -11,7 +11,7 @@ const config = { module: { rules: [{ - // Compile ES2015 using bable + // Compile ES2015 using babel test: /\.js$/, loader: 'babel-loader', include: [resolve('.')], @@ -19,13 +19,6 @@ const config = { }] }, - resolve: { - alias: { - // From mapbox-gl-js README. Required for non-browserify bundlers (e.g. webpack): - 'mapbox-gl$': resolve('./node_modules/mapbox-gl/dist/mapbox-gl.js') - } - }, - // Optional: Enables reading mapbox token from environment variable plugins: [ new webpack.EnvironmentPlugin(['MapboxAccessToken']) diff --git a/examples/controls/webpack.config.js b/examples/controls/webpack.config.js index 07e3e09bb..ae142b1e5 100644 --- a/examples/controls/webpack.config.js +++ b/examples/controls/webpack.config.js @@ -28,7 +28,7 @@ const config = { module: { rules: [{ - // Compile ES2015 using bable + // Compile ES2015 using babel test: /\.js$/, include: [resolve('.')], exclude: [/node_modules/], @@ -39,13 +39,6 @@ const config = { }] }, - resolve: { - alias: { - // From mapbox-gl-js README. Required for non-browserify bundlers (e.g. webpack): - 'mapbox-gl$': resolve('./node_modules/mapbox-gl/dist/mapbox-gl.js') - } - }, - // Optional: Enables reading mapbox token from environment variable plugins: [ new webpack.EnvironmentPlugin(['MapboxAccessToken']) diff --git a/examples/deckgl-overlay/webpack.config.js b/examples/deckgl-overlay/webpack.config.js index 5b683ac5f..07e179589 100644 --- a/examples/deckgl-overlay/webpack.config.js +++ b/examples/deckgl-overlay/webpack.config.js @@ -24,9 +24,7 @@ const config = { // Work against the latest base library in this repo 'react-map-gl': resolve(LIB_DIR), // Ensure only one copy of react - react: resolve('./node_modules/react'), - // Per mapbox-gl-js README for non-browserify bundlers - 'mapbox-gl$': resolve(`${LIB_DIR}/node_modules/mapbox-gl/dist/mapbox-gl.js`) + react: resolve('./node_modules/react') } }, diff --git a/examples/exhibit-webpack/webpack.config.js b/examples/exhibit-webpack/webpack.config.js index 0c01a722d..ae57516f9 100644 --- a/examples/exhibit-webpack/webpack.config.js +++ b/examples/exhibit-webpack/webpack.config.js @@ -14,7 +14,7 @@ const config = { module: { rules: [{ - // Compile ES2015 using bable + // Compile ES2015 using babel test: /\.js$/, loader: 'babel-loader', include: [resolve('.')], @@ -22,13 +22,6 @@ const config = { }] }, - resolve: { - alias: { - // From mapbox-gl-js README. Required for non-browserify bundlers (e.g. webpack): - 'mapbox-gl$': resolve('./node_modules/mapbox-gl/dist/mapbox-gl.js') - } - }, - // Optional: Enables reading mapbox token from environment variable plugins: [ new webpack.EnvironmentPlugin(['MapboxAccessToken']) diff --git a/examples/filter/webpack.config.js b/examples/filter/webpack.config.js index 07e3e09bb..ae142b1e5 100644 --- a/examples/filter/webpack.config.js +++ b/examples/filter/webpack.config.js @@ -28,7 +28,7 @@ const config = { module: { rules: [{ - // Compile ES2015 using bable + // Compile ES2015 using babel test: /\.js$/, include: [resolve('.')], exclude: [/node_modules/], @@ -39,13 +39,6 @@ const config = { }] }, - resolve: { - alias: { - // From mapbox-gl-js README. Required for non-browserify bundlers (e.g. webpack): - 'mapbox-gl$': resolve('./node_modules/mapbox-gl/dist/mapbox-gl.js') - } - }, - // Optional: Enables reading mapbox token from environment variable plugins: [ new webpack.EnvironmentPlugin(['MapboxAccessToken']) diff --git a/examples/geojson-animation/webpack.config.js b/examples/geojson-animation/webpack.config.js index 07e3e09bb..ae142b1e5 100644 --- a/examples/geojson-animation/webpack.config.js +++ b/examples/geojson-animation/webpack.config.js @@ -28,7 +28,7 @@ const config = { module: { rules: [{ - // Compile ES2015 using bable + // Compile ES2015 using babel test: /\.js$/, include: [resolve('.')], exclude: [/node_modules/], @@ -39,13 +39,6 @@ const config = { }] }, - resolve: { - alias: { - // From mapbox-gl-js README. Required for non-browserify bundlers (e.g. webpack): - 'mapbox-gl$': resolve('./node_modules/mapbox-gl/dist/mapbox-gl.js') - } - }, - // Optional: Enables reading mapbox token from environment variable plugins: [ new webpack.EnvironmentPlugin(['MapboxAccessToken']) diff --git a/examples/geojson/webpack.config.js b/examples/geojson/webpack.config.js index 6e77bb8a2..ac98792c2 100644 --- a/examples/geojson/webpack.config.js +++ b/examples/geojson/webpack.config.js @@ -35,7 +35,7 @@ const config = { module: { rules: [{ - // Compile ES2015 using bable + // Compile ES2015 using babel test: /\.js$/, include: [resolve('.')], exclude: [/node_modules/], @@ -46,13 +46,6 @@ const config = { }] }, - resolve: { - alias: { - // From mapbox-gl-js README. Required for non-browserify bundlers (e.g. webpack): - 'mapbox-gl$': resolve('./node_modules/mapbox-gl/dist/mapbox-gl.js') - } - }, - // Optional: Enables reading mapbox token from environment variable plugins: [ new webpack.EnvironmentPlugin(['MapboxAccessToken']) diff --git a/examples/interaction/webpack.config.js b/examples/interaction/webpack.config.js index 07e3e09bb..ae142b1e5 100644 --- a/examples/interaction/webpack.config.js +++ b/examples/interaction/webpack.config.js @@ -28,7 +28,7 @@ const config = { module: { rules: [{ - // Compile ES2015 using bable + // Compile ES2015 using babel test: /\.js$/, include: [resolve('.')], exclude: [/node_modules/], @@ -39,13 +39,6 @@ const config = { }] }, - resolve: { - alias: { - // From mapbox-gl-js README. Required for non-browserify bundlers (e.g. webpack): - 'mapbox-gl$': resolve('./node_modules/mapbox-gl/dist/mapbox-gl.js') - } - }, - // Optional: Enables reading mapbox token from environment variable plugins: [ new webpack.EnvironmentPlugin(['MapboxAccessToken']) diff --git a/examples/layers/webpack.config.js b/examples/layers/webpack.config.js index 07e3e09bb..ae142b1e5 100644 --- a/examples/layers/webpack.config.js +++ b/examples/layers/webpack.config.js @@ -28,7 +28,7 @@ const config = { module: { rules: [{ - // Compile ES2015 using bable + // Compile ES2015 using babel test: /\.js$/, include: [resolve('.')], exclude: [/node_modules/], @@ -39,13 +39,6 @@ const config = { }] }, - resolve: { - alias: { - // From mapbox-gl-js README. Required for non-browserify bundlers (e.g. webpack): - 'mapbox-gl$': resolve('./node_modules/mapbox-gl/dist/mapbox-gl.js') - } - }, - // Optional: Enables reading mapbox token from environment variable plugins: [ new webpack.EnvironmentPlugin(['MapboxAccessToken']) diff --git a/examples/main/webpack.config.js b/examples/main/webpack.config.js index 1cab02643..540ae9b8d 100644 --- a/examples/main/webpack.config.js +++ b/examples/main/webpack.config.js @@ -38,7 +38,7 @@ const config = { module: { rules: [{ - // Compile ES2015 using bable + // Compile ES2015 using babel test: /\.js$/, exclude: [/node_modules/], use: [{ diff --git a/examples/reuse-map/webpack.config.js b/examples/reuse-map/webpack.config.js index 07e3e09bb..ae142b1e5 100644 --- a/examples/reuse-map/webpack.config.js +++ b/examples/reuse-map/webpack.config.js @@ -28,7 +28,7 @@ const config = { module: { rules: [{ - // Compile ES2015 using bable + // Compile ES2015 using babel test: /\.js$/, include: [resolve('.')], exclude: [/node_modules/], @@ -39,13 +39,6 @@ const config = { }] }, - resolve: { - alias: { - // From mapbox-gl-js README. Required for non-browserify bundlers (e.g. webpack): - 'mapbox-gl$': resolve('./node_modules/mapbox-gl/dist/mapbox-gl.js') - } - }, - // Optional: Enables reading mapbox token from environment variable plugins: [ new webpack.EnvironmentPlugin(['MapboxAccessToken']) diff --git a/examples/viewport-animation/webpack.config.js b/examples/viewport-animation/webpack.config.js index 07e3e09bb..ae142b1e5 100644 --- a/examples/viewport-animation/webpack.config.js +++ b/examples/viewport-animation/webpack.config.js @@ -28,7 +28,7 @@ const config = { module: { rules: [{ - // Compile ES2015 using bable + // Compile ES2015 using babel test: /\.js$/, include: [resolve('.')], exclude: [/node_modules/], @@ -39,13 +39,6 @@ const config = { }] }, - resolve: { - alias: { - // From mapbox-gl-js README. Required for non-browserify bundlers (e.g. webpack): - 'mapbox-gl$': resolve('./node_modules/mapbox-gl/dist/mapbox-gl.js') - } - }, - // Optional: Enables reading mapbox token from environment variable plugins: [ new webpack.EnvironmentPlugin(['MapboxAccessToken'])