Skip to content

Regex filepath leads to build error in turbopack #95

Description

@mydea

You can see this here: https://github.com/getsentry/sentry-javascript/actions/runs/29421967405/job/87375946493?pr=22141

If you use the new filepath regex option introduced here: #73 in a turbopack loader, this fails at build time with:

Error: loader ~/node_modules/.pnpm/@apm-js-collab+code-transformer-bundler-plugins@0.6.1/node_modules/@apm-js-collab/code-transformer-bundler-plugins/dist/cjs/webpack-loader.cjs for match "*.{js,mjs,cjs}" does not have serializable options. Ensure that options passed are plain JavaScript objects and values.

We'll probably need to find a way to pass this around as a POJO with primitives only, I suppose...?"

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions