-
Notifications
You must be signed in to change notification settings - Fork 28.3k
Turbopack: respect a project’s browserslist config in both dev and build #63430
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Related: #57718 |
Hi, I'm running With this or without With
Without
details
in the "browserslist": [
"chrome >0 and last 2.5 years",
"edge >0 and last 2.5 years",
"safari >0 and last 2.5 years",
"firefox >0 and last 2.5 years",
"and_chr >0 and last 2.5 years",
"and_ff >0 and last 2.5 years",
"ios >0 and last 2.5 years"
],
/** @type {import('next').NextConfig} */
const nextConfig = {
images: {
remotePatterns: [
//
],
},
eslint: {
ignoreDuringBuilds: true,
},
async rewrites() {
return [
//
];
},
skipTrailingSlashRedirect: true,
};
const withBundleAnalyzer = require('@next/bundle-analyzer')({
enabled: process.env.ANALYZE === 'true',
});
module.exports = withBundleAnalyzer(nextConfig);
{
"compilerOptions": {
"lib": ["dom", "dom.iterable", "esnext"],
"allowJs": true,
"skipLibCheck": true,
"strict": true,
"noEmit": true,
"esModuleInterop": true,
"module": "esnext",
"moduleResolution": "node",
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "preserve",
"baseUrl": ".",
"paths": {
"@/*": ["./*"],
"@/public/*": ["./public/*"]
},
"incremental": true,
"plugins": [
{
"name": "next"
}
],
"strictNullChecks": true,
"target": "ES2017"
},
"include": [
"next-env.d.ts",
"**/*.ts",
"**/*.tsx",
".next/types/**/*.ts",
"lib/supabase/*.d.ts"
],
"exclude": ["node_modules"]
} Thanks PS: I'm happy to open another issue if this is not the correct issue to post this |
Going to close this issue given that browserslist support is already tracked by the failing tests on areweturboyet.com. |
Right now the devserver uses a fixed browserlist that’s the latest versions of evergreen browsers. Instead, we should respect what the user has configured (
browserslist
field in package.json,.browserslistrc
, etc.), like Next.js with webpack does.PACK-2882
The text was updated successfully, but these errors were encountered: