diff --git a/packages/core/core/src/BundleGraph.js b/packages/core/core/src/BundleGraph.js index e9bd6e7995d..22847dcf00c 100644 --- a/packages/core/core/src/BundleGraph.js +++ b/packages/core/core/src/BundleGraph.js @@ -5,7 +5,6 @@ import type { FilePath, Symbol, TraversalActions, - BundleBehavior as IBundleBehavior, } from '@parcel/types'; import type { ContentKey, @@ -20,10 +19,8 @@ import type { Bundle, BundleGraphNode, BundleGroup, - BundleNode, Dependency, DependencyNode, - Environment, InternalSourceLocation, Target, } from './types'; @@ -40,8 +37,7 @@ import {DefaultMap, objectSortedEntriesDeep, getRootDir} from '@parcel/utils'; import {Priority, BundleBehavior, SpecifierType} from './types'; import {getBundleGroupId, getPublicId} from './utils'; import {ISOLATED_ENVS} from './public/Environment'; -import {fromProjectPath, fromProjectPathRelative} from './projectPath'; -import {HASH_REF_PREFIX} from './constants'; +import {fromProjectPath} from './projectPath'; export const bundleGraphEdgeTypes = { // A lack of an edge type indicates to follow the edge while traversing diff --git a/packages/core/core/src/applyRuntimes.js b/packages/core/core/src/applyRuntimes.js index 6d22d5ee8fe..b8090d3a41d 100644 --- a/packages/core/core/src/applyRuntimes.js +++ b/packages/core/core/src/applyRuntimes.js @@ -99,7 +99,6 @@ export default async function applyRuntimes({ filePath, isEntry, env, - priority, } of runtimeAssets) { let sourceName = path.join( path.dirname(filePath), diff --git a/packages/runtimes/js/src/JSRuntime.js b/packages/runtimes/js/src/JSRuntime.js index 204467b5a62..83afad0a83c 100644 --- a/packages/runtimes/js/src/JSRuntime.js +++ b/packages/runtimes/js/src/JSRuntime.js @@ -13,10 +13,7 @@ import type { import {Runtime} from '@parcel/plugin'; import { relativeBundlePath, - validateSchema, - type SchemaEntity, } from '@parcel/utils'; -import {encodeJSONKeyComponent} from '@parcel/diagnostic'; import path from 'path'; import nullthrows from 'nullthrows'; @@ -71,7 +68,7 @@ let bundleDependencies = new WeakMap< >(); export default (new Runtime({ - apply({bundle, bundleGraph, options, config}) { + apply({bundle, bundleGraph, options}) { // Dependency ids in code replaced with referenced bundle names // Loader runtime added for bundle groups that don't have a native loader (e.g. HTML/CSS/Worker - isURL?), // and which are not loaded by a parent bundle.