File tree 4 files changed +5
-6
lines changed
4 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ const config = {
5
5
'^.+\\.(t|j)s$' : '@swc/jest' ,
6
6
} ,
7
7
resolver : 'ts-jest-resolver' ,
8
+ transformIgnorePatterns : [ 'node_modules/(?!(lodash-es)/)' ] ,
8
9
} ;
9
10
10
11
export default config ;
Original file line number Diff line number Diff line change 39
39
"prettier" : " @shelf/prettier-config" ,
40
40
"dependencies" : {
41
41
"entities" : " 5.0.0" ,
42
- "lodash.defaults" : " 4.2.0" ,
43
- "lodash.template" : " 4.5.0" ,
42
+ "lodash-es" : " 4.17.21" ,
44
43
"slug" : " 9.1.0"
45
44
},
46
45
"devDependencies" : {
52
51
"@swc/core" : " 1.9.3" ,
53
52
"@swc/jest" : " 0.2.37" ,
54
53
"@types/jest" : " 29.5.14" ,
55
- "@types/lodash.defaults" : " 4.2.9" ,
56
- "@types/lodash.template" : " 4.5.3" ,
54
+ "@types/lodash-es" : " 4.17.12" ,
57
55
"@types/node" : " 20.8.9" ,
58
56
"@types/slug" : " 5.0.9" ,
59
57
"eslint" : " 8.57.1" ,
Original file line number Diff line number Diff line change 1
- import template from 'lodash.template ' ;
1
+ import { template } from 'lodash-es ' ;
2
2
import type { Header , Settings } from '../types.js' ;
3
3
import { getSettings } from '../default-settings.js' ;
4
4
import { untag } from './untag.js' ;
Original file line number Diff line number Diff line change 1
- import template from 'lodash.template ' ;
1
+ import { template } from 'lodash-es ' ;
2
2
import type { Header , Settings } from '../types.js' ;
3
3
import { getSettings } from '../default-settings.js' ;
4
4
You can’t perform that action at this time.
0 commit comments