Skip to content

@sentry/nextjs transpileClientSDK options not work in yarn berry workspace environment #5929

Description

@codemilli

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which package are you using?

@sentry/nextjs

SDK Version

7.15.0

Framework Version

12.3.1

Link to Sentry event

No response

Steps to Reproduce

  1. In next.config.js, I added transpileClientSDK: true option for supporting old browser users.

Expected Result

Sentry source code is transpiled to ES5

Actual Result

Sentry source code is not transpiled to ES5

Additional Resources

webpack: (config, options) => {
  config.module.rules.push({
    test: /\.+(js|jsx|mjs|ts|tsx)$/,
    use: options.defaultLoaders.babel,
    include: (filePath) => filePath.includes('@sentry'),
    type: 'javascript/auto',
  });
  return config;
},

References

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions