Skip to content

Commit b92c45c

Browse files
committed
add comment explaining why resolveId should generate an id when the importer is project.xml only, and keep the default ids for everything else
1 parent 4eecff6 commit b92c45c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

vite-plugin-openfl.mjs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ export default function openflPlugin() {
5151
config = resolvedConfig;
5252
},
5353
resolveId(source, importer) {
54+
// we need to resolve the ids for imports in the entry point
55+
// for everything else, we should keep Vite's default ids
5456
const matched = /([\/\\])project\.xml$/.exec(importer);
5557
if (!matched) {
5658
return;

0 commit comments

Comments
 (0)