Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ForsakenHarmony committed Jan 5, 2023
1 parent 895524b commit 66720b7
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions crates/next-core/src/next_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -315,12 +315,9 @@ pub struct ExperimentalConfig {
pub server_components_external_packages: Option<Vec<String>>,
pub app_dir: Option<bool>,

// we only have swc?
// we only have swc
force_swc_transforms: Option<bool>,

// supported?
transpile_packages: Option<Vec<String>>,

#[serde(flatten)]
unsupported: UnsupportedExperimentalConfig,
}
Expand Down Expand Up @@ -381,6 +378,7 @@ struct UnsupportedExperimentalConfig {
swc_minify_debug_options: Option<serde_json::Value>,
swc_plugins: Option<serde_json::Value>,
swc_trace_profiling: Option<bool>,
transpile_packages: Option<Vec<String>>,
turbotrace: Option<serde_json::Value>,
url_imports: Option<serde_json::Value>,
web_vitals_attribution: Option<serde_json::Value>,
Expand Down Expand Up @@ -443,6 +441,7 @@ impl Default for UnsupportedExperimentalConfig {
swc_plugins: None,
swc_trace_profiling: Some(false),
turbotrace: None,
transpile_packages: None,
url_imports: None,
web_vitals_attribution: None,
worker_threads: Some(false),
Expand Down Expand Up @@ -654,7 +653,7 @@ const SUPPORTED_OPTIONS: &[&'static str] = &[
"experimental.serverComponentsExternalPackages",
];

pub async fn validate_next_config(
async fn validate_next_config(
project_path: FileSystemPathVc,
next_config: NextConfigVc,
) -> Result<()> {
Expand Down

0 comments on commit 66720b7

Please sign in to comment.