Fix webpack issues in examples (#609)

This commit is contained in:
Xiaoji Chen 2018-10-04 11:15:18 -07:00 committed by GitHub
parent 703a582353
commit 806cc44eb5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
25 changed files with 50 additions and 38 deletions

View File

@ -12,7 +12,7 @@
"immutable": "^3.8.1",
"react": "^16.0.0",
"react-dom": "^16.0.0",
"react-map-gl": "^3.2.0"
"react-map-gl": "^3.3.5"
},
"devDependencies": {
"@babel/core": "^7.0.0",
@ -20,7 +20,8 @@
"@babel/preset-env": "^7.0.0",
"@babel/preset-react": "^7.0.0",
"babel-loader": "^8.0.0",
"webpack": "^4.3.0",
"webpack": "^4.20.0",
"webpack-cli": "^3.1.2",
"webpack-dev-server": "^3.1.0"
}
}

View File

@ -23,7 +23,7 @@ const config = {
},
output: {
library: ['App']
library: 'App'
},
module: {

View File

@ -6,7 +6,7 @@
"dependencies": {
"react": "^16.0.0",
"react-dom": "^16.0.0",
"react-map-gl": "^3.2.0"
"react-map-gl": "^3.3.5"
},
"devDependencies": {
"@babel/core": "^7.0.0",
@ -14,7 +14,8 @@
"@babel/preset-env": "^7.0.0",
"@babel/preset-react": "^7.0.0",
"babel-loader": "^8.0.0",
"webpack": "^4.3.0",
"webpack": "^4.20.0",
"webpack-cli": "^3.1.2",
"webpack-dev-server": "^3.1.0"
}
}

View File

@ -23,7 +23,7 @@ const config = {
},
output: {
library: ['App']
library: 'App'
},
module: {

View File

@ -13,7 +13,7 @@
"probe.gl": "2.0.0-beta.1",
"react": "^16.0.0",
"react-dom": "^16.0.0",
"react-map-gl": "^3.2.0"
"react-map-gl": "^3.3.5"
},
"devDependencies": {
"@babel/core": "^7.0.0",
@ -21,7 +21,8 @@
"@babel/preset-env": "^7.0.0",
"@babel/preset-react": "^7.0.0",
"babel-loader": "^8.0.0",
"webpack": "^4.3.0",
"webpack": "^4.20.0",
"webpack-cli": "^3.1.2",
"webpack-dev-server": "^3.1.0"
}
}

View File

@ -23,7 +23,7 @@ const config = {
},
output: {
library: ['App']
library: 'App'
},
module: {

View File

@ -6,7 +6,7 @@
"dependencies": {
"react": "^16.0.0",
"react-dom": "^16.0.0",
"react-map-gl": "^3.2.0"
"react-map-gl": "^3.3.5"
},
"devDependencies": {
"@babel/core": "^7.0.0",
@ -14,7 +14,8 @@
"@babel/preset-env": "^7.0.0",
"@babel/preset-react": "^7.0.0",
"babel-loader": "^8.0.0",
"webpack": "^4.3.0",
"webpack": "^4.20.0",
"webpack-cli": "^3.1.2",
"webpack-dev-server": "^3.1.0"
}
}

View File

@ -23,7 +23,7 @@ const config = {
},
output: {
library: ['App']
library: 'App'
},
module: {

View File

@ -6,7 +6,7 @@
"immutable": "^3.8.1",
"react": "^16.0.0",
"react-dom": "^16.0.0",
"react-map-gl": "^3.2.0"
"react-map-gl": "^3.3.5"
},
"devDependencies": {
"@babel/core": "^7.0.0",
@ -14,7 +14,8 @@
"@babel/preset-react": "^7.0.0",
"babel-loader": "^8.0.0",
"html-webpack-plugin": "^3.0.7",
"webpack": "^4.3.0",
"webpack": "^4.20.0",
"webpack-cli": "^3.1.2",
"webpack-dev-server": "^3.1.0"
}
}

View File

@ -7,7 +7,7 @@
"immutable": "^3.8.1",
"react": "^16.0.0",
"react-dom": "^16.0.0",
"react-map-gl": "^3.2.0"
"react-map-gl": "^3.3.5"
},
"devDependencies": {
"@babel/core": "^7.0.0",
@ -15,7 +15,8 @@
"@babel/preset-env": "^7.0.0",
"@babel/preset-react": "^7.0.0",
"babel-loader": "^8.0.0",
"webpack": "^4.3.0",
"webpack": "^4.20.0",
"webpack-cli": "^3.1.2",
"webpack-dev-server": "^3.1.0"
}
}

View File

@ -23,7 +23,7 @@ const config = {
},
output: {
library: ['App']
library: 'App'
},
module: {

View File

@ -7,7 +7,7 @@
"immutable": "^3.8.1",
"react": "^16.0.0",
"react-dom": "^16.0.0",
"react-map-gl": "^3.2.0"
"react-map-gl": "^3.3.5"
},
"devDependencies": {
"@babel/core": "^7.0.0",
@ -15,7 +15,8 @@
"@babel/preset-env": "^7.0.0",
"@babel/preset-react": "^7.0.0",
"babel-loader": "^8.0.0",
"webpack": "^4.3.0",
"webpack": "^4.20.0",
"webpack-cli": "^3.1.2",
"webpack-dev-server": "^3.1.0"
}
}

View File

@ -23,7 +23,7 @@ const config = {
},
output: {
library: ['App']
library: 'App'
},
module: {

View File

@ -9,7 +9,7 @@
"immutable": "^3.8.1",
"react": "^16.0.0",
"react-dom": "^16.0.0",
"react-map-gl": "^3.2.0"
"react-map-gl": "^3.3.5"
},
"devDependencies": {
"@babel/core": "^7.0.0",
@ -17,7 +17,8 @@
"@babel/preset-env": "^7.0.0",
"@babel/preset-react": "^7.0.0",
"babel-loader": "^8.0.0",
"webpack": "^4.3.0",
"webpack": "^4.20.0",
"webpack-cli": "^3.1.2",
"webpack-dev-server": "^3.1.0"
}
}

View File

@ -23,7 +23,7 @@ const config = {
},
output: {
library: ['App']
library: 'App'
},
devServer: {

View File

@ -6,7 +6,7 @@
"dependencies": {
"react": "^16.0.0",
"react-dom": "^16.0.0",
"react-map-gl": "^3.2.0"
"react-map-gl": "^3.3.5"
},
"devDependencies": {
"@babel/core": "^7.0.0",
@ -14,7 +14,8 @@
"@babel/preset-env": "^7.0.0",
"@babel/preset-react": "^7.0.0",
"babel-loader": "^8.0.0",
"webpack": "^4.3.0",
"webpack": "^4.20.0",
"webpack-cli": "^3.1.2",
"webpack-dev-server": "^3.1.0"
}
}

View File

@ -23,7 +23,7 @@ const config = {
},
output: {
library: ['App']
library: 'App'
},
module: {

View File

@ -7,7 +7,7 @@
"immutable": "^3.8.1",
"react": "^16.0.0",
"react-dom": "^16.0.0",
"react-map-gl": "^3.2.0"
"react-map-gl": "^3.3.5"
},
"devDependencies": {
"@babel/core": "^7.0.0",
@ -15,7 +15,8 @@
"@babel/preset-env": "^7.0.0",
"@babel/preset-react": "^7.0.0",
"babel-loader": "^8.0.0",
"webpack": "^4.3.0",
"webpack": "^4.20.0",
"webpack-cli": "^3.1.2",
"webpack-dev-server": "^3.1.0"
}
}

View File

@ -23,7 +23,7 @@ const config = {
},
output: {
library: ['App']
library: 'App'
},
module: {

View File

@ -28,8 +28,8 @@
"node-sass": "^4.8.3",
"sass-loader": "^7.0.0",
"style-loader": "^0.20.3",
"webpack": "^4.3.0",
"webpack-cli": "^2.0.13",
"webpack": "^4.20.0",
"webpack-cli": "^3.0.0",
"webpack-dev-server": "^3.1.1"
}
}

View File

@ -6,7 +6,7 @@
"dependencies": {
"react": "^16.0.0",
"react-dom": "^16.0.0",
"react-map-gl": "^3.2.0"
"react-map-gl": "^3.3.5"
},
"devDependencies": {
"@babel/core": "^7.0.0",
@ -14,7 +14,8 @@
"@babel/preset-env": "^7.0.0",
"@babel/preset-react": "^7.0.0",
"babel-loader": "^8.0.0",
"webpack": "^4.3.0",
"webpack": "^4.20.0",
"webpack-cli": "^3.1.2",
"webpack-dev-server": "^3.1.0"
}
}

View File

@ -23,7 +23,7 @@ const config = {
},
output: {
library: ['App']
library: 'App'
},
module: {

View File

@ -6,7 +6,7 @@
"dependencies": {
"react": "^16.0.0",
"react-dom": "^16.0.0",
"react-map-gl": "^3.2.0"
"react-map-gl": "^3.3.5"
},
"devDependencies": {
"@babel/core": "^7.0.0",
@ -14,7 +14,8 @@
"@babel/preset-env": "^7.0.0",
"@babel/preset-react": "^7.0.0",
"babel-loader": "^8.0.0",
"webpack": "^4.3.0",
"webpack": "^4.20.0",
"webpack-cli": "^3.1.2",
"webpack-dev-server": "^3.1.0"
}
}

View File

@ -23,7 +23,7 @@ const config = {
},
output: {
library: ['App']
library: 'App'
},
module: {

View File

@ -34,7 +34,7 @@ const LOCAL_DEVELOPMENT_CONFIG = {
alias: {
// Imports the react-map-gl library from the src directory in this repo
'react-map-gl': SRC_DIR,
'mapbox-gl$': resolve(LIB_DIR, './node_modules/mapbox-gl/dist/mapbox-gl-dev.js'),
'../utils/mapboxgl': resolve(LIB_DIR, './node_modules/mapbox-gl/dist/mapbox-gl-dev.js'),
react: resolve(LIB_DIR, './node_modules/react')
}
},