After upgrading to the latest version of workflow (specifically following the changes in PR 705), the workflow build fails during the "Discovering workflow directives" phase if a scanned TypeScript file imports a Markdown (.md) file with an aliased path.
This is the turbopack config in next.config.js that used to work before beta.40
turbopack: {
rules: {
'*.md': {
loaders: ['raw-loader'],
as: '*.js',
},
},
},
Environment
Workflow Version: 4.0.1-beta.41
Next.js Version: 15.x / 16.x
Package Manager: bun
OS: macOS (Darwin 24.6.0)