Browse Source

try: switch to lodash-es as there are issues with imports

master
Marek Piasecki 2 years ago
parent
commit
7832c0c3f1
  1. 2461
      package-lock.json
  2. 13
      package.json
  3. 14
      src/helpers.imba

2461
package-lock.json

File diff suppressed because it is too large

13
package.json

@ -1,6 +1,6 @@
{ {
"name": "pro-router-imba2", "name": "pro-router-imba2",
"version": "1.0.4", "version": "1.0.5",
"type": "commonjs", "type": "commonjs",
"files": [ "files": [
"bin", "bin",
@ -24,18 +24,13 @@
"test": "" "test": ""
}, },
"dependencies": { "dependencies": {
"lodash.chunk": "^4.2.0", "lodash-es": "^4.17.21",
"lodash.compact": "^3.0.1",
"lodash.flatten": "^4.4.0",
"lodash.frompairs": "^4.0.1",
"lodash.includes": "^4.3.0",
"lodash.reject": "^4.6.0",
"lodash.topairs": "^4.3.0",
"pro-router": "^4.3.2" "pro-router": "^4.3.2"
}, },
"devDependencies": { "devDependencies": {
"@types/lodash-es": "^4.17.6",
"imba": "^2.0.0-alpha.226", "imba": "^2.0.0-alpha.226",
"vite": "^3.2.5", "vite": "^3.2.5",
"vite-plugin-imba": "^0.10.1" "vite-plugin-imba": "^0.10.2"
} }
} }

14
src/helpers.imba

@ -1,9 +1,9 @@
import compact from 'lodash.compact' import compact from 'lodash-es/compact'
import fromPairs from 'lodash.frompairs' import fromPairs from 'lodash-es/fromPairs'
import chunk from 'lodash.chunk' import chunk from 'lodash-es/chunk'
import includes from 'lodash.includes' import includes from 'lodash-es/includes'
import reject from 'lodash.reject' import reject from 'lodash-es/reject'
import toPairs from 'lodash.topairs' import toPairs from 'lodash-es/toPairs'
import flatten from 'lodash.flatten' import flatten from 'lodash-es/flatten'
export { compact, fromPairs, chunk, includes, reject, toPairs, flatten } export { compact, fromPairs, chunk, includes, reject, toPairs, flatten }
Loading…
Cancel
Save