Skip to content

Commit d06d27a

Browse files
committed
fmt
1 parent b0297df commit d06d27a

2 files changed

Lines changed: 2 additions & 6 deletions

File tree

packages/nextjs/src/config/turbopack/constructTurbopackConfig.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,7 @@ export function constructTurbopackConfig({
6262
// `condition` field in Turbopack rules (Next.js 16+). Without `condition: { not: 'foreign' }`,
6363
// the loader would tag node_modules as first-party, defeating the purpose.
6464
const applicationKey = userSentryOptions?._experimental?.turbopackApplicationKey;
65-
if (
66-
applicationKey &&
67-
nextJsVersion &&
68-
supportsTurbopackRuleCondition(nextJsVersion)
69-
) {
65+
if (applicationKey && nextJsVersion && supportsTurbopackRuleCondition(nextJsVersion)) {
7066
newConfig.rules = safelyAddTurbopackRule(newConfig.rules, {
7167
matcher: '*.{ts,tsx,js,jsx,mjs,cjs}',
7268
rule: {

packages/nextjs/test/config/moduleMetadataInjectionLoader.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ function createLoaderThis(
2525
describe('moduleMetadataInjectionLoader', () => {
2626
it('should inject metadata snippet into simple code', () => {
2727
const loaderThis = createLoaderThis('my-app');
28-
const userCode = 'import * as Sentry from \'@sentry/nextjs\';\nSentry.init();';
28+
const userCode = "import * as Sentry from '@sentry/nextjs';\nSentry.init();";
2929

3030
const result = moduleMetadataInjectionLoader.call(loaderThis, userCode);
3131

0 commit comments

Comments
 (0)