fix webpack

This commit is contained in:
Nawaz Dhandala 2022-06-27 14:19:59 +01:00
parent 44cf077e4d
commit a0bd79e34a
No known key found for this signature in database
GPG Key ID: 96C5DCA24769DBCA
4 changed files with 26 additions and 11 deletions

View File

@ -22,7 +22,10 @@ module.exports = {
publicPath: "//assets/", publicPath: "//assets/",
}, },
resolve: { resolve: {
extensions: ['.ts', '.tsx', '.js', '.jsx', '.json', '.css', '.scss'] extensions: ['.ts', '.tsx', '.js', '.jsx', '.json', '.css', '.scss'],
alias: {
react: path.resolve('./node_modules/react'),
}
}, },
externals: { externals: {
'react-native-sqlite-storage': 'react-native-sqlite-storage' 'react-native-sqlite-storage': 'react-native-sqlite-storage'

View File

@ -64,12 +64,15 @@
"version": "1.0.0", "version": "1.0.0",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@types/crypto-js": "^4.1.1",
"@types/nanoid-dictionary": "^4.2.0", "@types/nanoid-dictionary": "^4.2.0",
"@types/uuid": "^8.3.4", "@types/uuid": "^8.3.4",
"axios": "^0.26.1", "axios": "^0.26.1",
"crypto-js": "^4.1.1",
"moment": "^2.29.2", "moment": "^2.29.2",
"nanoid": "^3.3.2", "nanoid": "^3.3.2",
"nanoid-dictionary": "^4.3.0", "nanoid-dictionary": "^4.3.0",
"process": "^0.11.10",
"reflect-metadata": "^0.1.13", "reflect-metadata": "^0.1.13",
"slugify": "^1.6.5", "slugify": "^1.6.5",
"typeorm": "^0.3.6", "typeorm": "^0.3.6",
@ -8167,15 +8170,18 @@
"version": "file:../Common", "version": "file:../Common",
"requires": { "requires": {
"@faker-js/faker": "^6.3.1", "@faker-js/faker": "^6.3.1",
"@types/crypto-js": "^4.1.1",
"@types/jest": "^27.4.1", "@types/jest": "^27.4.1",
"@types/nanoid-dictionary": "^4.2.0", "@types/nanoid-dictionary": "^4.2.0",
"@types/node": "^17.0.22", "@types/node": "^17.0.22",
"@types/uuid": "^8.3.4", "@types/uuid": "^8.3.4",
"axios": "^0.26.1", "axios": "^0.26.1",
"crypto-js": "^4.1.1",
"jest": "^27.5.1", "jest": "^27.5.1",
"moment": "^2.29.2", "moment": "^2.29.2",
"nanoid": "^3.3.2", "nanoid": "^3.3.2",
"nanoid-dictionary": "^4.3.0", "nanoid-dictionary": "^4.3.0",
"process": "^0.11.10",
"reflect-metadata": "^0.1.13", "reflect-metadata": "^0.1.13",
"slugify": "^1.6.5", "slugify": "^1.6.5",
"ts-jest": "^27.1.4", "ts-jest": "^27.1.4",

View File

@ -9615,28 +9615,26 @@
"@fortawesome/react-fontawesome": "^0.1.18", "@fortawesome/react-fontawesome": "^0.1.18",
"redux": "^4.2.0", "redux": "^4.2.0",
"reactstrap": "^9.1.1", "reactstrap": "^9.1.1",
"react-dom": "^18.1.0",
"formik": "^2.2.9", "formik": "^2.2.9",
"react-icons": "^4.4.0", "react-icons": "^4.4.0",
"universal-cookie": "^4.0.4", "universal-cookie": "^4.0.4",
"react-router-dom": "^6.3.0",
"history": "^5.3.0", "history": "^5.3.0",
"@fortawesome/fontawesome-svg-core": "^6.1.1", "@fortawesome/fontawesome-svg-core": "^6.1.1",
"react-spinners": "^0.12.0", "react-spinners": "^0.12.0",
"react-router": "^6.3.0",
"yup": "^0.32.11", "yup": "^0.32.11",
"@ailibs/feather-react-ts": "^3.0.3", "@ailibs/feather-react-ts": "^3.0.3",
"react": "^18.1.0",
"@fortawesome/free-regular-svg-icons": "^6.1.1", "@fortawesome/free-regular-svg-icons": "^6.1.1",
"react-modern-drawer": "^1.1.1", "react-modern-drawer": "^1.1.1",
"@fortawesome/free-solid-svg-icons": "^6.1.1", "@fortawesome/free-solid-svg-icons": "^6.1.1",
"prop-types": "^15.8.1" "prop-types": "^15.8.1"
}, },
"devDependencies": { "devDependencies": {
"@types/node": "^17.0.23" "@types/node": "^17.0.23",
}, "@types/react": "^18.0.9"
"peerDependencies": {
"@types/react": "^18.0.9",
"react": "^18.1.0",
"react-dom": "^18.1.0",
"react-router": "^6.3.0",
"react-router-dom": "^6.3.0"
} }
}, },
"node_modules/@babel/plugin-syntax-dynamic-import": { "node_modules/@babel/plugin-syntax-dynamic-import": {
@ -20614,13 +20612,18 @@
"@fortawesome/free-solid-svg-icons": "^6.1.1", "@fortawesome/free-solid-svg-icons": "^6.1.1",
"@fortawesome/react-fontawesome": "^0.1.18", "@fortawesome/react-fontawesome": "^0.1.18",
"@types/node": "^17.0.23", "@types/node": "^17.0.23",
"@types/react": "^18.0.9",
"Common": "file:../Common", "Common": "file:../Common",
"bootstrap": "^5.2.0-beta1", "bootstrap": "^5.2.0-beta1",
"formik": "^2.2.9", "formik": "^2.2.9",
"history": "^5.3.0", "history": "^5.3.0",
"prop-types": "^15.8.1", "prop-types": "^15.8.1",
"react": "^18.1.0",
"react-dom": "^18.1.0",
"react-icons": "^4.4.0", "react-icons": "^4.4.0",
"react-modern-drawer": "^1.1.1", "react-modern-drawer": "^1.1.1",
"react-router": "^6.3.0",
"react-router-dom": "^6.3.0",
"react-spinners": "^0.12.0", "react-spinners": "^0.12.0",
"reactstrap": "^9.1.1", "reactstrap": "^9.1.1",
"redux": "^4.2.0", "redux": "^4.2.0",

View File

@ -22,7 +22,10 @@ module.exports = {
publicPath: "//assets/", publicPath: "//assets/",
}, },
resolve: { resolve: {
extensions: ['.ts', '.tsx', '.js', '.json', '.css', '.scss'] extensions: ['.ts', '.tsx', '.js', '.json', '.css', '.scss'],
alias: {
react: path.resolve('./node_modules/react'),
}
}, },
externals: { externals: {
'react-native-sqlite-storage': 'react-native-sqlite-storage' 'react-native-sqlite-storage': 'react-native-sqlite-storage'
@ -36,7 +39,7 @@ module.exports = {
...readEnvFile('./.env') ...readEnvFile('./.env')
} }
} }
}), }),
], ],
module: { module: {
rules: [ rules: [