Changeset View
Changeset View
Standalone View
Standalone View
js_modules/dagit/src/graph/getFullSolidLayout.ts
// eslint-disable-next-line import/no-webpack-loader-syntax | // eslint-disable-next-line import/no-webpack-loader-syntax | ||||
import LayoutWorker from 'worker-loader!babel-loader!../workers/dagre_layout.worker'; | import LayoutWorker from 'worker-loader!../workers/dagre_layout.worker'; | ||||
import {asyncMemoize, memoize} from 'src/Util'; | import {asyncMemoize, memoize} from 'src/Util'; | ||||
import {ILayoutSolid, layoutPipeline} from 'src/graph/layout'; | import {ILayoutSolid, layoutPipeline} from 'src/graph/layout'; | ||||
// Loads the web worker using the Webpack loader `worker-loader`, specifying the import inline. | // Loads the web worker using the Webpack loader `worker-loader`, specifying the import inline. | ||||
// This allows us to use web workers without ejecting from `create-react-app` (in order to use the | // This allows us to use web workers without ejecting from `create-react-app` (in order to use the | ||||
// config). We need both worker-loader (wraps the worker code) and babel-loader (transpiles from | // config). We need both worker-loader (wraps the worker code) and babel-loader (transpiles from | ||||
// TypeScript to target ES5) in order to keep worker code in sync with our existing libraries. | // TypeScript to target ES5) in order to keep worker code in sync with our existing libraries. | ||||
Show All 23 Lines |