Skip to content

Commit

Permalink
New version 4.4.7 Read more https://github.com/xdan/jodit/blob/main/C…
Browse files Browse the repository at this point in the history
  • Loading branch information
xdan committed Jan 30, 2025
1 parent 99d61d5 commit df8413a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jodit",
"version": "4.4.6",
"version": "4.4.7",
"description": "Jodit is an awesome and useful wysiwyg editor with filebrowser",
"main": "build/jodit.min.js",
"types": "./types/index.d.ts",
Expand Down
4 changes: 4 additions & 0 deletions tools/utils/resolve-alias-imports.ts
Original file line number Diff line number Diff line change
Expand Up @@ -447,6 +447,10 @@ function resolvePath(str: string, filePath: string): string {

modulePath = moduleInfo.relativePath;

if (argv.mode !== 'esm' && modulePath.endsWith('.d.ts')) {
modulePath = modulePath.replace(/.d.ts$/, '');
}

if (moduleInfo.isPackage) {
return modulePath;
}
Expand Down

0 comments on commit df8413a

Please sign in to comment.