-
-
Notifications
You must be signed in to change notification settings - Fork 816
Closed
Labels
featureType/scope: New feature or enhancementType/scope: New feature or enhancementreviewStatus: PR is open and needs reviewStatus: PR is open and needs review🌿 intermediateDifficulty: Requires moderate understandingDifficulty: Requires moderate understanding🟡 mediumPriority: Relevant, but not essentialPriority: Relevant, but not essential
Milestone
Description
Description
Import map key generation seems to be based on the dependencies filename:
nicegui/nicegui/dependencies.py
Line 126 in 09f4c34
return path.name.split('.', 1)[0] |
e.g.
dependencies=['node_modules/@json-editor/json-editor/dist/jsoneditor.js']
leads to the key jsoneditor
which is also required in dynamic imports within custom vue components:
import("jsoneditor")
(see also #4162)
However, this may lead to conflicts if two libs use the same filename. Also, it would be preferable to use the correct package name to stay interoperable with other environments (e.g. vite):
import("@json-editor/json-editor")
Metadata
Metadata
Assignees
Labels
featureType/scope: New feature or enhancementType/scope: New feature or enhancementreviewStatus: PR is open and needs reviewStatus: PR is open and needs review🌿 intermediateDifficulty: Requires moderate understandingDifficulty: Requires moderate understanding🟡 mediumPriority: Relevant, but not essentialPriority: Relevant, but not essential