Skip to content

Commit 4354ff7

Browse files
committed
chore: update webpack 5 and remove babel loader
1 parent 57afe7c commit 4354ff7

File tree

7 files changed

+5890
-6951
lines changed

7 files changed

+5890
-6951
lines changed

.eslintrc.js

+8-6
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,19 @@
11
module.exports = {
22
parserOptions: {
33
ecmaVersion: 2019,
4-
sourceType: 'module',
4+
sourceType: 'module'
55
},
66
env: {
77
es6: true,
8-
browser: true,
8+
browser: true
99
},
10-
plugins: ['svelte3'],
10+
plugins: [
11+
'svelte3'
12+
],
1113
overrides: [
1214
{
13-
files: ['**/*.svelte'],
14-
processor: 'svelte3/svelte3',
15-
},
15+
files: ['*.svelte'],
16+
processor: 'svelte3/svelte3'
17+
}
1618
],
1719
};

README.md

+4
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,10 @@ Preprocess is the most interesting API of svelte. Therefore, [svelte-preprocess]
5858

5959
[OFFICAL INTEGRATIONS](https://github.com/sveltejs/eslint-plugin-svelte3/blob/master/INTEGRATIONS.md)
6060

61+
## Changelog
62+
63+
- babel is not essential. So we remove babel-loader
64+
6165
## LICENSE
6266

6367
[MIT](./LICENSE) @brandonxiang

babel.config.js

-4
This file was deleted.

package.json

+23-29
Original file line numberDiff line numberDiff line change
@@ -6,45 +6,39 @@
66
"author": "brandonxiang <[email protected]>",
77
"license": "MIT",
88
"devDependencies": {
9-
"@babel/core": "^7.5.5",
10-
"@babel/plugin-syntax-dynamic-import": "^7.2.0",
11-
"@babel/plugin-transform-runtime": "^7.5.5",
12-
"@babel/preset-env": "^7.5.5",
13-
"autoprefixer": "^10.2.5",
14-
"babel-loader": "^8.0.6",
15-
"copy-webpack-plugin": "^8.1.0",
9+
"autoprefixer": "^10.4.14",
10+
"copy-webpack-plugin": "^11.0.0",
1611
"cross-env": "^7.0.3",
17-
"css-loader": "^5.0.1",
18-
"eslint": "^7.23.0",
19-
"eslint-plugin-svelte3": "^3.1.2",
12+
"css-loader": "^6.7.3",
13+
"eslint": "^8.36.0",
14+
"eslint-plugin-svelte3": "^4.0.0",
2015
"file-loader": "^6.2.0",
21-
"globby": "^11.0.3",
22-
"html-webpack-plugin": "^5.3.1",
23-
"husky": "^6.0.0",
24-
"lint-staged": "^10.5.4",
25-
"mini-css-extract-plugin": "^1.3.4",
26-
"postcss": "^8.2.9",
27-
"postcss-load-config": "^3.0.1",
28-
"prettier": "^2.2.1",
29-
"prettier-plugin-svelte": "^2.2.0",
30-
"svelte": "^3.31.2",
31-
"svelte-loader": "^3.0.0",
32-
"svelte-preprocess": "^4.7.0",
16+
"globby": "11.0.3",
17+
"html-webpack-plugin": "^5.5.0",
18+
"husky": "^8.0.3",
19+
"lint-staged": "^13.2.0",
20+
"mini-css-extract-plugin": "^2.7.5",
21+
"postcss": "^8.4.21",
22+
"postcss-load-config": "^4.0.1",
23+
"prettier": "^2.8.6",
24+
"prettier-plugin-svelte": "^2.9.0",
25+
"svelte-loader": "^3.1.7",
26+
"svelte-preprocess": "^5.0.3",
27+
"taze": "^0.9.1",
3328
"url-loader": "^4.1.1",
34-
"webpack": "^5.16.0",
35-
"webpack-bundle-analyzer": "^4.4.0",
36-
"webpack-cli": "^4.4.0",
37-
"webpack-dev-server": "^3.11.2"
29+
"webpack": "^5.76.2",
30+
"webpack-bundle-analyzer": "^4.8.0",
31+
"webpack-cli": "^5.0.1",
32+
"webpack-dev-server": "^4.13.1"
3833
},
3934
"scripts": {
4035
"build": "cross-env NODE_ENV=production webpack",
41-
"dev": "webpack serve --content-base public",
36+
"dev": "webpack serve",
4237
"analyze": "NODE_ENV=production webpack --env.analyze=true --mode=production --progress",
4338
"format": "prettier --write --svelte-sort-order scripts-markup-styles ./**/*.svelte"
4439
},
4540
"dependencies": {
46-
"@babel/runtime": "^7.7.7",
47-
"svelte": "^3.0.0"
41+
"svelte": "^3.57.0"
4842
},
4943
"browserslist": [
5044
"last 1 version",

0 commit comments

Comments
 (0)