Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions packages/core/src/plugins/basic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ export const pluginBasic = (): RsbuildPlugin => ({
force: false,
},
},
// enable native-watcher by default
nativeWatcher: true,
});
}

Expand Down
2 changes: 2 additions & 0 deletions packages/core/tests/__snapshots__/basic.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ exports[`plugin-basic > should apply basic config correctly in development 1`] =
"context": "<ROOT>/packages/core/tests",
"devtool": "cheap-module-source-map",
"experiments": {
"nativeWatcher": true,
"rspackFuture": {
"bundlerInfo": {
"force": false,
Expand Down Expand Up @@ -51,6 +52,7 @@ exports[`plugin-basic > should apply basic config correctly in production 1`] =
"context": "<ROOT>/packages/core/tests",
"devtool": false,
"experiments": {
"nativeWatcher": true,
"rspackFuture": {
"bundlerInfo": {
"force": false,
Expand Down
1 change: 1 addition & 0 deletions packages/core/tests/__snapshots__/builder.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ exports[`should use Rspack as the default bundler > apply Rspack correctly 1`] =
},
"experiments": {
"asyncWebAssembly": true,
"nativeWatcher": true,
"rspackFuture": {
"bundlerInfo": {
"force": false,
Expand Down
4 changes: 4 additions & 0 deletions packages/core/tests/__snapshots__/default.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ exports[`applyDefaultPlugins > should apply default plugins correctly 1`] = `
},
"experiments": {
"asyncWebAssembly": true,
"nativeWatcher": true,
"rspackFuture": {
"bundlerInfo": {
"force": false,
Expand Down Expand Up @@ -517,6 +518,7 @@ exports[`applyDefaultPlugins > should apply default plugins correctly when prod
},
"experiments": {
"asyncWebAssembly": true,
"nativeWatcher": true,
"rspackFuture": {
"bundlerInfo": {
"force": false,
Expand Down Expand Up @@ -1051,6 +1053,7 @@ exports[`applyDefaultPlugins > should apply default plugins correctly when targe
},
"experiments": {
"asyncWebAssembly": true,
"nativeWatcher": true,
"rspackFuture": {
"bundlerInfo": {
"force": false,
Expand Down Expand Up @@ -1480,6 +1483,7 @@ exports[`tools.rspack > should match snapshot 1`] = `
},
"experiments": {
"asyncWebAssembly": true,
"nativeWatcher": true,
"rspackFuture": {
"bundlerInfo": {
"force": false,
Expand Down
2 changes: 2 additions & 0 deletions packages/core/tests/__snapshots__/environments.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -1324,6 +1324,7 @@ exports[`environment config > tools.rspack / bundlerChain can be configured in e
"devtool": "eval-source-map",
"experiments": {
"asyncWebAssembly": true,
"nativeWatcher": true,
"rspackFuture": {
"bundlerInfo": {
"force": false,
Expand Down Expand Up @@ -1770,6 +1771,7 @@ exports[`environment config > tools.rspack / bundlerChain can be configured in e
"devtool": "eval",
"experiments": {
"asyncWebAssembly": true,
"nativeWatcher": true,
"rspackFuture": {
"bundlerInfo": {
"force": false,
Expand Down
Loading