Skip to content

Commit f1403a9

Browse files
committed
Fix imports
1 parent 39d9d34 commit f1403a9

File tree

5 files changed

+13
-10
lines changed

5 files changed

+13
-10
lines changed

dev-packages/browser-integration-tests/utils/fixtures.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import fs from 'fs';
2-
import path from 'path';
1+
import * as fs from 'fs';
2+
import * as path from 'path';
33
/* eslint-disable no-empty-pattern */
44
import { test as base } from '@playwright/test';
55

dev-packages/browser-integration-tests/utils/generatePage.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { existsSync, mkdirSync } from 'fs';
2-
import HtmlWebpackPlugin from 'html-webpack-plugin';
3-
import webpack from 'webpack';
2+
import * as HtmlWebpackPlugin from 'html-webpack-plugin';
3+
import * as webpack from 'webpack';
44

55
import webpackConfig from '../webpack.config';
66
import SentryScenarioGenerationPlugin from './generatePlugin';

dev-packages/browser-integration-tests/utils/generatePlugin.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
1-
import fs from 'fs';
2-
import path from 'path';
1+
import * as fs from 'fs';
2+
import * as path from 'path';
33
import type { Package } from '@sentry/types';
4-
import HtmlWebpackPlugin, { createHtmlTagObject } from 'html-webpack-plugin';
4+
import * as HtmlWebpackPlugin from 'html-webpack-plugin';
55
import type { Compiler } from 'webpack';
66

77
import { addStaticAsset, addStaticAssetSymlink } from './staticAssets';
88

9+
// eslint-disable-next-line @typescript-eslint/unbound-method
10+
const createHtmlTagObject = HtmlWebpackPlugin.createHtmlTagObject;
11+
912
const LOADER_TEMPLATE = fs.readFileSync(path.join(__dirname, '../fixtures/loader.js'), 'utf-8');
1013
const PACKAGES_DIR = path.join(__dirname, '..', '..', '..', 'packages');
1114
const ROOT_PACKAGE_JSON_PATH = path.join(__dirname, '..', '..', '..', 'package.json');

dev-packages/browser-integration-tests/utils/replayHelpers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import type {
1212
Session,
1313
} from '@sentry/replay/build/npm/types/types';
1414
import type { Breadcrumb, Event, ReplayEvent, ReplayRecordingMode } from '@sentry/types';
15-
import pako from 'pako';
15+
import * as pako from 'pako';
1616

1717
import { envelopeRequestParser } from './helpers';
1818

dev-packages/browser-integration-tests/utils/staticAssets.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import fs from 'fs';
2-
import path from 'path';
1+
import * as fs from 'fs';
2+
import * as path from 'path';
33

44
export const STATIC_DIR = path.join(__dirname, '../tmp/static');
55

0 commit comments

Comments
 (0)