Skip to content

Commit

Permalink
fix type
Browse files Browse the repository at this point in the history
  • Loading branch information
slorber committed Sep 13, 2024
1 parent 7dfdd47 commit dc94a6a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/docusaurus-types/src/bundler.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
* LICENSE file in the root directory of this source tree.
*/

import type * as webpack from 'webpack';
import type webpack from 'webpack';

// We use Webpack and Rspack interchangeably because most Rspack APIs are
// compatible with Webpack. So it's ok to use Webpack types for Rspack too.
// When compatibility doesn't work, use "CurrentBundler.name"
// See https://github.com/facebook/docusaurus/pull/10402
export type CurrentBundler = {
name: 'webpack' | 'rspack';
instance: webpack;
instance: typeof webpack;
};

0 comments on commit dc94a6a

Please sign in to comment.