@@ -155,17 +155,17 @@ pub async fn webpack_loader_options(
155
155
156
156
let config_file_path = async || project_path. join ( & next_config. await ?. config_file_name ) ;
157
157
158
- let disable_builtin_sass = next_config
159
- . experimental_turbopack_disable_builtin_sass ( )
158
+ let use_builtin_sass = next_config
159
+ . experimental_turbopack_use_builtin_sass ( )
160
160
. await ?;
161
- if !disable_builtin_sass . unwrap_or ( false ) {
162
- if disable_builtin_sass . is_none ( )
161
+ if use_builtin_sass . unwrap_or ( true ) {
162
+ if use_builtin_sass . is_none ( )
163
163
&& let Some ( glob) = detect_likely_sass_loader ( & rules) . await ?
164
164
{
165
165
ManuallyConfiguredBuiltinLoaderIssue {
166
166
glob,
167
167
loader : rcstr ! ( "sass-loader" ) ,
168
- disable_builtin_config_key : rcstr ! ( "experimental.turbopackDisableBuiltinSass " ) ,
168
+ config_key : rcstr ! ( "experimental.turbopackUseBuiltinSass " ) ,
169
169
config_file_path : config_file_path ( ) . await ?,
170
170
}
171
171
. resolved_cell ( )
@@ -178,13 +178,13 @@ pub async fn webpack_loader_options(
178
178
// (https://github.com/vercel/next.js/pull/82676) and the react-compiler logic is moved into
179
179
// here. React-compiler is currently configured in JS before it gets to us, which could trigger
180
180
// false-positives.
181
- let disable_builtin_babel = next_config
182
- . experimental_turbopack_disable_builtin_babel ( )
181
+ let use_builtin_babel = next_config
182
+ . experimental_turbopack_use_builtin_babel ( )
183
183
. await ?;
184
184
if !builtin_conditions. contains ( & WebpackLoaderBuiltinCondition :: Foreign )
185
- && !disable_builtin_babel . unwrap_or ( false )
185
+ && use_builtin_babel . unwrap_or ( true )
186
186
{
187
- if disable_builtin_babel . is_none ( )
187
+ if use_builtin_babel . is_none ( )
188
188
&& let Some ( glob) = detect_likely_babel_loader ( & rules) . await ?
189
189
{
190
190
let _ = glob;
@@ -196,7 +196,7 @@ pub async fn webpack_loader_options(
196
196
ManuallyConfiguredBuiltinLoaderIssue {
197
197
glob,
198
198
loader: rcstr!("babel-loader"),
199
- disable_builtin_config_key: rcstr!("experimental.turbopackDisableBuiltinBabel "),
199
+ disable_builtin_config_key: rcstr!("experimental.turbopackUseBuiltinBabel "),
200
200
config_file_path: config_file_path().await?,
201
201
}
202
202
.resolved_cell()
@@ -241,7 +241,7 @@ fn loader_runner_package_mapping() -> Result<Vc<ImportMapping>> {
241
241
struct ManuallyConfiguredBuiltinLoaderIssue {
242
242
glob : RcStr ,
243
243
loader : RcStr ,
244
- disable_builtin_config_key : RcStr ,
244
+ config_key : RcStr ,
245
245
config_file_path : FileSystemPath ,
246
246
}
247
247
@@ -282,13 +282,14 @@ impl Issue for ManuallyConfiguredBuiltinLoaderIssue {
282
282
) ) ,
283
283
StyledString :: Line ( vec![
284
284
StyledString :: Text ( rcstr!( "You can silence this warning by setting " ) ) ,
285
- StyledString :: Code ( self . disable_builtin_config_key . clone( ) ) ,
285
+ StyledString :: Code ( self . config_key . clone( ) ) ,
286
286
StyledString :: Text ( rcstr!( " in " ) ) ,
287
287
StyledString :: Text ( self . config_file_path. path. clone( ) ) ,
288
288
StyledString :: Text ( rcstr!( " to " ) ) ,
289
289
StyledString :: Code ( rcstr!( "true" ) ) ,
290
- StyledString :: Text ( rcstr!( " or " ) ) ,
290
+ StyledString :: Text ( rcstr!( " (to silence this warning) or " ) ) ,
291
291
StyledString :: Code ( rcstr!( "false" ) ) ,
292
+ StyledString :: Text ( rcstr!( " (to disable the default built-in loader)" ) ) ,
292
293
] ) ,
293
294
] )
294
295
. resolved_cell ( ) ,
0 commit comments