Skip to content

Commit

Permalink
feat: add babel to emit es5
Browse files Browse the repository at this point in the history
  • Loading branch information
dadiorchen committed Jan 11, 2022
1 parent 4c889d0 commit d1c07a2
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 2 deletions.
Binary file added dist/1ca743837d7983e0d683.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added dist/4aa9525c27aaca183c6a.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added dist/553c0e8fc4644ec017cd.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added dist/e33eed6fcac7eac7bc9b.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion dist/main.js

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,11 @@
"loglevel": "^1.7.1"
},
"devDependencies": {
"@babel/core": "^7.16.7",
"@babel/preset-env": "^7.16.8",
"@commitlint/cli": "^15.0.0",
"@commitlint/config-conventional": "^15.0.0",
"babel-loader": "^8.2.3",
"css-loader": "^6.5.0",
"cypress-watch-and-reload": "^1.5.4",
"eslint": "^8.4.1",
Expand Down
2 changes: 1 addition & 1 deletion src/Map.js
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ export default class Map {
},
onSlowAlert: () => {
log.warn('slow alert')
this.alert.show('Trees grow slower than this map loads ...')
this.alert.show('Trees grow slower than this map loads, be patient...')
},
onLoad: () => {
log.warn('load finished')
Expand Down
10 changes: 10 additions & 0 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,16 @@ module.exports = {
test: /\.css$/i,
use: ['style-loader', 'css-loader'],
},
{
test: /\.m?js$/,
exclude: /(node_modules|bower_components)/,
use: {
loader: 'babel-loader',
options: {
presets: ['@babel/preset-env'],
},
},
},
],
},
}

0 comments on commit d1c07a2

Please sign in to comment.