Mapbox webpack resolver no longer needed in examples (#577)

This commit is contained in:
David Schnurr 2018-08-13 11:26:53 -07:00 committed by GitHub
parent 9c302ae840
commit 489d33832b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
12 changed files with 12 additions and 84 deletions

View File

@ -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'])

View File

@ -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'])

View File

@ -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')
}
},

View File

@ -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'])

View File

@ -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'])

View File

@ -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'])

View File

@ -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'])

View File

@ -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'])

View File

@ -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'])

View File

@ -38,7 +38,7 @@ const config = {
module: {
rules: [{
// Compile ES2015 using bable
// Compile ES2015 using babel
test: /\.js$/,
exclude: [/node_modules/],
use: [{

View File

@ -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'])

View File

@ -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'])