fix: strip .js extensions from SDK imports; restore turbopack dev

This commit is contained in:
thesn10
2026-06-25 18:39:14 +02:00
parent 5cc3231952
commit 627e08b192
6 changed files with 10 additions and 19 deletions

View File

@@ -3,15 +3,6 @@ import type { NextConfig } from 'next'
const config: NextConfig = {
reactStrictMode: true,
transpilePackages: ['@solana/connector', '@solisting/sdk', '@descro/sdk'],
webpack(webpackConfig) {
// Workspace SDK packages use .js extensions on TypeScript imports (ESM convention)
// but have no compiled output — webpack must resolve .js → .ts
webpackConfig.resolve.extensionAlias = {
'.js': ['.ts', '.tsx', '.js'],
'.mjs': ['.mts', '.mjs'],
}
return webpackConfig
},
}
export default config