File tree Expand file tree Collapse file tree 4 files changed +8
-8
lines changed Expand file tree Collapse file tree 4 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 16
16
"main" : " lib" ,
17
17
"module" : " lib/esm" ,
18
18
"es2015" : " lib/es2015" ,
19
- "fesm5" : " lib/esm" ,
20
19
"types" : " lib" ,
21
20
"files" : [
22
21
" lib" ,
Original file line number Diff line number Diff line change 16
16
"main" : " lib" ,
17
17
"module" : " lib/esm" ,
18
18
"es2015" : " lib/es2015" ,
19
- "fesm5" : " lib/esm" ,
20
19
"types" : " lib" ,
21
20
"files" : [
22
21
" lib" ,
39
38
"remark-mdx" : " ^1.6.22" ,
40
39
"remark-parse" : " ^8.0.3" ,
41
40
"remark-stringify" : " ^8.1.1" ,
42
- "synckit" : " ^0.3.3 " ,
41
+ "synckit" : " ^0.3.4 " ,
43
42
"tslib" : " ^2.3.0" ,
44
43
"unified" : " ^9.2.1" ,
45
44
"vfile" : " ^4.2.1"
Original file line number Diff line number Diff line change @@ -11,10 +11,12 @@ import vfile from 'vfile'
11
11
import { getPhysicalFilename , getRemarkProcessor } from './helpers'
12
12
import type { RemarkLintMessage } from './types'
13
13
14
+ const workerPath = require . resolve ( '../worker' )
15
+
14
16
// call `creatSyncFn` lazily for performance, it is already cached inside, related #323
15
17
const lazyRemark = {
16
18
get processSync ( ) {
17
- return createSyncFn ( require . resolve ( '../worker' ) ) as (
19
+ return createSyncFn ( workerPath ) as (
18
20
fileOptions : VFileOptions ,
19
21
physicalFilename : string ,
20
22
isMdx : boolean ,
Original file line number Diff line number Diff line change @@ -11504,10 +11504,10 @@ synckit@^0.1.5:
11504
11504
tslib "^2.2.0"
11505
11505
uuid "^8.3.2"
11506
11506
11507
- synckit@^0.3.3 :
11508
- version "0.3.3 "
11509
- resolved "https://registry.yarnpkg.com/synckit/-/synckit-0.3.3 .tgz#a36af5d2f7382c9a2c5e528cd8ad64ed882dde70 "
11510
- integrity sha512-uIPHDSdGBQS2C2PmFZkMhBYC20H0diioDEiOR1lsIoP25/xbJPHU0GdHJ7GgvAUkLgEkTJ32zNzulzIPnhrYZA ==
11507
+ synckit@^0.3.4 :
11508
+ version "0.3.4 "
11509
+ resolved "https://registry.yarnpkg.com/synckit/-/synckit-0.3.4 .tgz#8f0c2b1019663633d56d43d09589494d74654ab3 "
11510
+ integrity sha512-t6qVl+gzR6qMkrP5pW+sxGe0mVx/O7vj29ir9k4Lw9BacPBE/cKHMvcROJlFBgNHFW94etQL/sBYFq4uur6C6A ==
11511
11511
dependencies:
11512
11512
tslib "^2.3.0"
11513
11513
uuid "^8.3.2"
You can’t perform that action at this time.
0 commit comments