Skip to content

Commit

Permalink
New version 4.0.0-beta.32 Read more https://github.com/xdan/jodit/blo…
Browse files Browse the repository at this point in the history
  • Loading branch information
xdan committed May 8, 2023
1 parent 1a8998a commit 0cb096c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 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
@@ -1,6 +1,6 @@
{
"name": "jodit",
"version": "4.0.0-beta.31",
"version": "4.0.0-beta.32",
"description": "Jodit is awesome and usefully wysiwyg editor with filebrowser",
"main": "build/jodit.min.js",
"types": "./types/index.d.ts",
Expand Down
6 changes: 5 additions & 1 deletion tools/utils/resolve-alias-imports.ts
Expand Up @@ -84,7 +84,11 @@ function resoleAliasImports(dirPath: string): void {
}

// For esm add extension
if (isJs && !allowPackages.has(modulePath)) {
if (
isJs &&
!modulePath.endsWith('.js') &&
!allowPackages.has(modulePath)
) {
const fullPath = path.resolve(dirPath, modulePath);

if (
Expand Down

0 comments on commit 0cb096c

Please sign in to comment.