Skip to content

Commit

Permalink
chore: update comments
Browse files Browse the repository at this point in the history
  • Loading branch information
barak007 committed Oct 1, 2023
1 parent 8134ecf commit bdc7e30
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/webpack-plugin/src/legacy-module-resolver.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
// in browser build this gets remapped to an empty object via our package.json->"browser"
import nodeModule from 'module';
// importing the factory directly, as we feed it our own fs, and don't want graceful-fs to be implicitly imported
// this allows @stylable/core to be bundled for browser usage without special custom configuration
import ResolverFactory from 'enhanced-resolve/lib/ResolverFactory.js';
import type { ResolveOptions } from 'enhanced-resolve';

Expand All @@ -20,7 +18,9 @@ function bundleSafeRequireExtensions(): string[] {
}

const resolverContext = {};

/**
* @deprecated this resolve is slow as hell and not recommended.
*/
export function createWebpackResolver(fileSystem: ResolveOptions['fileSystem'], resolveOptions: Partial<ResolveOptions>) {
const extensions =
resolveOptions.extensions && resolveOptions.extensions.length
Expand Down

0 comments on commit bdc7e30

Please sign in to comment.