Skip to content

Commit

Permalink
preclean edges ONLY for webpack.
Browse files Browse the repository at this point in the history
  • Loading branch information
samccone committed May 23, 2020
1 parent 91cc4da commit dc3e2f3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/import/webpack/Importer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { ImportProps, ImportResolveState, ImportState } from "../../types";

import React, { Component } from "react";
import { ProcessedSourceMap } from "../process_sourcemaps";
import { cleanGraph } from "../graph_process";
// noopener noreferrer

const IGNORE_FILES = [
Expand Down Expand Up @@ -65,7 +66,7 @@ class WebpackImport extends Component<ImportProps, ImportState> {
const processed = await processImports({
sourceMapContents,
graphNodes: statsFileContents,
graphPreProcessFn: statsToGraph
graphPreProcessFn: g => cleanGraph(statsToGraph(g))
});

if (processed.proccessedSourcemap != null) {
Expand Down

0 comments on commit dc3e2f3

Please sign in to comment.