Skip to content

Commit f9867c7

Browse files
committed
Update webpack version to latest
1 parent a59b4af commit f9867c7

4 files changed

Lines changed: 503 additions & 792 deletions

File tree

babel.config.json

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
1+
12
{
2-
"presets": [
3-
"@babel/preset-env"
3+
"presets": [
4+
[
5+
"@babel/env",
6+
{
7+
"targets": {
8+
"edge": "17",
9+
"firefox": "60",
10+
"chrome": "67",
11+
"safari": "11.1"
12+
},
13+
"useBuiltIns": "usage",
14+
"corejs": "3.6.5"
15+
}
16+
]
417
]
518
}

package.json

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"name": "danfojs",
3-
"version": "0.2.1",
3+
"version": "0.2.2",
44
"description": "JavaScript library providing high performance, intuitive, and easy to use data structures for manipulating and processing structured data.",
5-
"main": "dist/index.js",
5+
"main": "lib/bundle.js",
66
"types": "danfojs/types/index.d.ts",
77
"directories": {
88
"test": "danfojs/tests"
@@ -16,29 +16,33 @@
1616
}
1717
],
1818
"files": [
19-
"dist/",
19+
"lib/",
2020
"danfojs/src/",
2121
"danfojs/types"
2222
],
2323
"dependencies": {
24-
"@tensorflow/tfjs": "^2.8.5",
25-
"frictionless.js": "0.13.4",
24+
"@tensorflow/tfjs": "2.8.5",
2625
"mathjs": "7.5.1",
2726
"plotly.js": "1.54.7",
28-
"stream-to-array": "^2.3.0",
2927
"table": "^5.4.6",
30-
"xlsx": "^0.16.7"
28+
"xlsx": "^0.16.7",
29+
"@babel/runtime": "^7.12.13"
3130
},
3231
"scripts": {
3332
"test": "yarn run build && karma start --single-run --browsers ChromeHeadless karma.conf.js",
3433
"build": "babel ./danfojs/src -d ./dist --no-comments",
3534
"lint": "eslint ./danfojs/src",
36-
"bundle": "yarn run build && webpack --mode production",
35+
"bundle": "webpack",
3736
"coveralls": "cat ./coverage/lcov.info | ./node_modules/.bin/coveralls",
3837
"coverage": "nyc report --reporter=text-lcov | coveralls && nyc report --reporter=lcov",
3938
"patch": "npm version patch"
4039
},
41-
"publishConfig": { "access": "public", "branches": ["master"] },
40+
"publishConfig": {
41+
"access": "public",
42+
"branches": [
43+
"master"
44+
]
45+
},
4246
"repository": {
4347
"type": "git",
4448
"url": "git+https://github.com/opensource9ja/danfojs.git"
@@ -80,8 +84,8 @@
8084
"parcel-bundler": "^1.12.4",
8185
"source-map-loader": "^1.0.0",
8286
"transform-loader": "^0.2.4",
83-
"webpack": "^4.44.0",
84-
"webpack-cli": "^3.3.12"
87+
"webpack": "5.21.2",
88+
"webpack-cli": "4.5.0"
8589
},
8690
"nyc": {
8791
"reporter": [
@@ -90,4 +94,4 @@
9094
]
9195
},
9296
"sideEffects": false
93-
}
97+
}

webpack.config.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,11 @@ const createConfig = (target) => {
2727
}
2828
]
2929
},
30-
node: { fs: "empty" }
30+
resolve: {
31+
fallback: {
32+
fs: false
33+
}
34+
}
3135
};
3236
};
3337

0 commit comments

Comments
 (0)