mirror of
https://github.com/visgl/react-map-gl.git
synced 2026-01-25 16:02:50 +00:00
Fix webpack issues in examples (#609)
This commit is contained in:
parent
703a582353
commit
806cc44eb5
@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
@ -23,7 +23,7 @@ const config = {
|
||||
},
|
||||
|
||||
output: {
|
||||
library: ['App']
|
||||
library: 'App'
|
||||
},
|
||||
|
||||
module: {
|
||||
|
||||
@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
@ -23,7 +23,7 @@ const config = {
|
||||
},
|
||||
|
||||
output: {
|
||||
library: ['App']
|
||||
library: 'App'
|
||||
},
|
||||
|
||||
module: {
|
||||
|
||||
@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
@ -23,7 +23,7 @@ const config = {
|
||||
},
|
||||
|
||||
output: {
|
||||
library: ['App']
|
||||
library: 'App'
|
||||
},
|
||||
|
||||
module: {
|
||||
|
||||
@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
@ -23,7 +23,7 @@ const config = {
|
||||
},
|
||||
|
||||
output: {
|
||||
library: ['App']
|
||||
library: 'App'
|
||||
},
|
||||
|
||||
module: {
|
||||
|
||||
@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
@ -23,7 +23,7 @@ const config = {
|
||||
},
|
||||
|
||||
output: {
|
||||
library: ['App']
|
||||
library: 'App'
|
||||
},
|
||||
|
||||
module: {
|
||||
|
||||
@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
@ -23,7 +23,7 @@ const config = {
|
||||
},
|
||||
|
||||
output: {
|
||||
library: ['App']
|
||||
library: 'App'
|
||||
},
|
||||
|
||||
module: {
|
||||
|
||||
@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
@ -23,7 +23,7 @@ const config = {
|
||||
},
|
||||
|
||||
output: {
|
||||
library: ['App']
|
||||
library: 'App'
|
||||
},
|
||||
|
||||
devServer: {
|
||||
|
||||
@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
@ -23,7 +23,7 @@ const config = {
|
||||
},
|
||||
|
||||
output: {
|
||||
library: ['App']
|
||||
library: 'App'
|
||||
},
|
||||
|
||||
module: {
|
||||
|
||||
@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
@ -23,7 +23,7 @@ const config = {
|
||||
},
|
||||
|
||||
output: {
|
||||
library: ['App']
|
||||
library: 'App'
|
||||
},
|
||||
|
||||
module: {
|
||||
|
||||
@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
@ -23,7 +23,7 @@ const config = {
|
||||
},
|
||||
|
||||
output: {
|
||||
library: ['App']
|
||||
library: 'App'
|
||||
},
|
||||
|
||||
module: {
|
||||
|
||||
@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
@ -23,7 +23,7 @@ const config = {
|
||||
},
|
||||
|
||||
output: {
|
||||
library: ['App']
|
||||
library: 'App'
|
||||
},
|
||||
|
||||
module: {
|
||||
|
||||
@ -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')
|
||||
}
|
||||
},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user