Skip to content

Commit 257b10c

Browse files
ccntrqMartynas Žilinskas
authored andcommitted
feat: add [IGNORED] label to ignored imports (#51)
1 parent 867f7e3 commit 257b10c

5 files changed

Lines changed: 15 additions & 5 deletions

File tree

@types/bundler.d.ts

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/bundler.js

Lines changed: 4 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/launcher.js

Lines changed: 4 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/bundler.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ export interface BundleResult {
3434
filePath: string;
3535
bundledContent?: string;
3636
found: boolean;
37+
ignored?: boolean;
3738
}
3839

3940
export class Bundler {
@@ -156,7 +157,8 @@ export class Bundler {
156157
currentImport = {
157158
filePath: imp.fullPath,
158159
tilde: imp.tilde,
159-
found: false
160+
found: false,
161+
ignored: imp.ignored
160162
};
161163
} else if (this.fileRegistry[imp.fullPath] == null) {
162164
// If file is not yet in the registry

src/launcher.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,9 @@ export class Launcher {
127127
if (bundleResult.deduped) {
128128
archyData.label += ` [DEDUPED]`;
129129
}
130+
if (bundleResult.ignored) {
131+
archyData.label += ` [IGNORED]`;
132+
}
130133

131134
if (bundleResult.imports != null) {
132135
archyData.nodes = bundleResult.imports.map(x => {

0 commit comments

Comments
 (0)