@rtvision/esbuild-dynamic-import
Advanced tools
Comparing version
@@ -74,3 +74,3 @@ // src/index.ts | ||
accum += "\n"; | ||
return `${accum}import _DynamicImportModule${i} from '${path}';`; | ||
return `${accum}import * as _DynamicImportModule${i} from '${path}';`; | ||
}, ""); | ||
@@ -77,0 +77,0 @@ let objectMapString = "const _DynamicImportModuleMap = {"; |
{ | ||
"name": "@rtvision/esbuild-dynamic-import", | ||
"description": "Plugin for transform dynamic imports in esbuild", | ||
"version": "1.0.1", | ||
"version": "2.0.0", | ||
"author": "Kalvens (@kalvenschraut)", | ||
@@ -25,6 +25,6 @@ "bugs": "https://github.com/RtVision/esbuild-dynamic-imports/issues", | ||
"@types/node": "^18.0.0", | ||
"@typescript-eslint/eslint-plugin": "^5.28.0", | ||
"@typescript-eslint/parser": "^5.28.0", | ||
"esbuild": "^0.17.8", | ||
"eslint": "^8.17.0", | ||
"@typescript-eslint/eslint-plugin": "^5.59.6", | ||
"@typescript-eslint/parser": "^5.59.6", | ||
"esbuild": "^0.17.19", | ||
"eslint": "^8.40.0", | ||
"eslint-config-standard": "^17.0.0", | ||
@@ -34,4 +34,4 @@ "eslint-plugin-import": "^2.26.0", | ||
"eslint-plugin-promise": "^6.0.0", | ||
"tsup": "^6.6.2", | ||
"typescript": "^4.7.3" | ||
"tsup": "^6.7.0", | ||
"typescript": "^5.0.4" | ||
}, | ||
@@ -50,3 +50,5 @@ "engines": { | ||
"repository": "RtVision/esbuild-dynamic-import", | ||
"scripts": {} | ||
"scripts": { | ||
"build": "tsup src/index.ts --format=cjs,esm --dts" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
19936
-0.52%354
-1.12%