-
-
Notifications
You must be signed in to change notification settings - Fork 391
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: lodash imports needs explicit .js extension
- Loading branch information
Theo Ephraim
committed
Jun 28, 2023
1 parent
613d0e2
commit 4cad156
Showing
2 changed files
with
31 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
.eslintrc.cjs | ||
build.config.js | ||
jest.config.cjs | ||
dist | ||
dist | ||
examples |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,34 @@ | ||
/* eslint-disable import/extensions */ | ||
|
||
// re-export just what we need from lodash | ||
// we do this so we can use a single import, but hopefully | ||
// it helps keep bundle sizes down in front-end projects using this lib | ||
|
||
export { default as compact } from 'lodash/compact'; | ||
export { default as compact } from 'lodash/compact.js'; | ||
|
||
export { default as each } from 'lodash/each'; | ||
export { default as filter } from 'lodash/filter'; | ||
export { default as find } from 'lodash/find'; | ||
export { default as flatten } from 'lodash/flatten'; | ||
export { default as get } from 'lodash/get'; | ||
export { default as groupBy } from 'lodash/groupBy'; | ||
export { default as isArray } from 'lodash/isArray'; | ||
export { default as isBoolean } from 'lodash/isBoolean'; | ||
export { default as isEqual } from 'lodash/isEqual'; | ||
export { default as isFinite } from 'lodash/isFinite'; | ||
export { default as isInteger } from 'lodash/isInteger'; | ||
export { default as isNil } from 'lodash/isNil'; | ||
export { default as isNumber } from 'lodash/isNumber'; | ||
export { default as isObject } from 'lodash/isObject'; | ||
export { default as isString } from 'lodash/isString'; | ||
export { default as keyBy } from 'lodash/keyBy'; | ||
export { default as keys } from 'lodash/keys'; | ||
export { default as map } from 'lodash/map'; | ||
export { default as omit } from 'lodash/omit'; | ||
export { default as pickBy } from 'lodash/pickBy'; | ||
export { default as set } from 'lodash/set'; | ||
export { default as some } from 'lodash/some'; | ||
export { default as sortBy } from 'lodash/sortBy'; | ||
export { default as times } from 'lodash/times'; | ||
export { default as unset } from 'lodash/unset'; | ||
export { default as values } from 'lodash/values'; | ||
export { default as each } from 'lodash/each.js'; | ||
export { default as filter } from 'lodash/filter.js'; | ||
export { default as find } from 'lodash/find.js'; | ||
export { default as flatten } from 'lodash/flatten.js'; | ||
export { default as get } from 'lodash/get.js'; | ||
export { default as groupBy } from 'lodash/groupBy.js'; | ||
export { default as isArray } from 'lodash/isArray.js'; | ||
export { default as isBoolean } from 'lodash/isBoolean.js'; | ||
export { default as isEqual } from 'lodash/isEqual.js'; | ||
export { default as isFinite } from 'lodash/isFinite.js'; | ||
export { default as isInteger } from 'lodash/isInteger.js'; | ||
export { default as isNil } from 'lodash/isNil.js'; | ||
export { default as isNumber } from 'lodash/isNumber.js'; | ||
export { default as isObject } from 'lodash/isObject.js'; | ||
export { default as isString } from 'lodash/isString.js'; | ||
export { default as keyBy } from 'lodash/keyBy.js'; | ||
export { default as keys } from 'lodash/keys.js'; | ||
export { default as map } from 'lodash/map.js'; | ||
export { default as omit } from 'lodash/omit.js'; | ||
export { default as pickBy } from 'lodash/pickBy.js'; | ||
export { default as set } from 'lodash/set.js'; | ||
export { default as some } from 'lodash/some.js'; | ||
export { default as sortBy } from 'lodash/sortBy.js'; | ||
export { default as times } from 'lodash/times.js'; | ||
export { default as unset } from 'lodash/unset.js'; | ||
export { default as values } from 'lodash/values.js'; |