Skip to content

Commit

Permalink
fix: banner plugin switch condition
Browse files Browse the repository at this point in the history
  • Loading branch information
easy1090 committed Jan 24, 2025
1 parent de5943f commit 5609239
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions e2e/cases/doctor-rspack/banner-plugin.test.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { expect, test } from '@playwright/test';
import { Utils } from '@rsdoctor/core/build-utils';
import { getSDK, setSDK } from '@rsdoctor/core/plugins';
import { compileByRspack } from '@scripts/test-helper';
import { BannerPlugin, Compiler } from '@rspack/core';
import { compileByRspack } from '@scripts/test-helper';
import path from 'path';
import { createRsdoctorPlugin } from './test-utils';
import { parseBundle } from '../../node_modules/@rsdoctor/core/dist/build-utils/build/utils/parseBundle';

let reportLoaderStartOrEndTimes = 0;

Expand Down Expand Up @@ -118,7 +118,7 @@ test('rspack banner plugin', async () => {
const sdk = getSDK();

// @ts-ignore
const bundle = parseBundle(
const bundle = Utils.parseBundle(
path.join(__dirname, './fixtures/rspack-banner-plugin.js'),
// @ts-ignore
sdk.getStoreData().moduleGraph.modules,
Expand Down
4 changes: 2 additions & 2 deletions e2e/cases/doctor-rspack/tag-plugin-without-banner.test.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { expect, test } from '@playwright/test';
import { getSDK, setSDK } from '@rsdoctor/core/plugins';
import { compileByRspack } from '@scripts/test-helper';
import { Utils } from '@rsdoctor/core/build-utils';
import { Compiler } from '@rspack/core';
import path from 'path';
import { createRsdoctorPlugin } from './test-utils';
import { parseBundle } from '../../node_modules/@rsdoctor/core/dist/build-utils/build/utils/parseBundle';

let reportLoaderStartOrEndTimes = 0;

Expand Down Expand Up @@ -108,7 +108,7 @@ test('rspack banner plugin', async () => {
const sdk = getSDK();

// @ts-ignore
const bundle = parseBundle(
const bundle = Utils.parseBundle(
path.join(__dirname, './fixtures/rspack-banner-plugin.js'),
// @ts-ignore
sdk.getStoreData().moduleGraph.modules,
Expand Down

0 comments on commit 5609239

Please sign in to comment.