Skip to content
This repository was archived by the owner on Oct 16, 2024. It is now read-only.

Commit e11ee3f

Browse files
committed
Upgrade deps and simplify babel code generator
1 parent 95f636e commit e11ee3f

6 files changed

+708
-2566
lines changed

.babelrc

+1-34
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,3 @@
11
{
2-
"env": {
3-
"development": {
4-
"presets": [
5-
[
6-
"@babel/env",
7-
{
8-
"modules": false
9-
}
10-
],
11-
"@babel/react"
12-
]
13-
},
14-
"test": {
15-
"presets": [
16-
"@babel/env",
17-
"@babel/react"
18-
]
19-
},
20-
"production": {
21-
"presets": [
22-
[
23-
"@babel/env",
24-
{
25-
"modules": false
26-
}
27-
],
28-
"@babel/react"
29-
],
30-
"plugins": [
31-
"@babel/plugin-transform-react-constant-elements",
32-
"@babel/plugin-transform-react-inline-elements"
33-
]
34-
}
35-
}
2+
"presets": ["@babel/env"]
363
}

.eslintrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"extends": [
88
"eslint:recommended",
99
],
10-
"parser": "babel-eslint",
10+
"parser": "@babel/eslint-parser",
1111
"rules": {
1212
"no-console": 0,
1313
"max-len": 0,

dist/linkedin-insight.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+9-12
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "react-linkedin-insight",
33
"version": "0.0.6",
4-
"description": "Easily add LinkedIn Insight Tag to React",
4+
"description": "Easily add LinkedIn Insight Tag to your application",
55
"author": "Jelle Klaver",
66
"bugs": {
77
"url": "https://github.com/jelleklaver/react-linkedin-insight/issues"
@@ -24,26 +24,23 @@
2424
"url": "git+https://github.com/jelleklaver/react-linkedin-insight.git"
2525
},
2626
"scripts": {
27-
"bundle": "npm run lint && export NODE_ENV=production && webpack -p --config webpack.config.dist.js",
27+
"bundle": "npm run lint && export NODE_ENV=production && webpack --config webpack.config.dist.js",
2828
"lint": "eslint src/",
2929
"clean": "rm -rf node_modules"
3030
},
3131
"types": "./@types/index.d.ts",
3232
"dependencies": {
33-
"browser-or-node": "^1.2.1"
33+
"browser-or-node": "^1.3.0"
3434
},
3535
"devDependencies": {
3636
"@babel/core": "^7.8.3",
37+
"@babel/eslint-parser": "^7.12.1",
3738
"@babel/preset-env": "^7.8.3",
38-
"autoprefixer": "^9.7.3",
39-
"babel-eslint": "^10.0.3",
40-
"babel-loader": "^8.0.6",
41-
"eslint": "^6.8.0",
39+
"autoprefixer": "^10.0.2",
40+
"babel-loader": "^8.2.1",
41+
"eslint": "^7.14.0",
4242
"eslint-plugin-import": "^2.20.0",
43-
"webpack": "^4.41.5",
44-
"webpack-cli": "^3.3.10"
45-
},
46-
"dependencies": {
47-
"browser-or-node": "^1.2.1"
43+
"webpack": "^5.6.0",
44+
"webpack-cli": "^4.2.0"
4845
}
4946
}

webpack.config.dist.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,7 @@ module.exports = {
2424
},
2525
plugins: [
2626
new webpack.DefinePlugin({
27-
"process.env": {
28-
NODE_ENV: JSON.stringify("production")
29-
}
27+
"process.env": { NODE_ENV: "production" }
3028
}),
3129
new webpack.LoaderOptionsPlugin({
3230
minimize: true,

0 commit comments

Comments
 (0)