diff --git a/examples/rsbuild-minimal/rsbuild.config.ts b/examples/rsbuild-minimal/rsbuild.config.ts index a34470a3f..92fc7f8f9 100644 --- a/examples/rsbuild-minimal/rsbuild.config.ts +++ b/examples/rsbuild-minimal/rsbuild.config.ts @@ -11,8 +11,10 @@ export default defineConfig({ { disableClientServer: !process.env.ENABLE_CLIENT_SERVER, features: ['bundle', 'plugins', 'loader', 'resolver'], - reportCodeType: { - noAssetsAndModuleSource: true, + output: { + reportCodeType: { + noAssetsAndModuleSource: true, + }, }, linter: { level: 'Error', diff --git a/examples/rspack-banner-minimal/src/index.tsx b/examples/rspack-banner-minimal/src/index.tsx index 07924fc81..f919dc166 100644 --- a/examples/rspack-banner-minimal/src/index.tsx +++ b/examples/rspack-banner-minimal/src/index.tsx @@ -1,7 +1,7 @@ import React from 'react'; import ReactDOM from 'react-dom/client'; import './index.css'; -import App from './App'; +import { App } from './App'; import reportWebVitals from './reportWebVitals'; const root = ReactDOM.createRoot( diff --git a/examples/rspack-layers-minimal/src/index.tsx b/examples/rspack-layers-minimal/src/index.tsx index 07924fc81..f919dc166 100644 --- a/examples/rspack-layers-minimal/src/index.tsx +++ b/examples/rspack-layers-minimal/src/index.tsx @@ -1,7 +1,7 @@ import React from 'react'; import ReactDOM from 'react-dom/client'; import './index.css'; -import App from './App'; +import { App } from './App'; import reportWebVitals from './reportWebVitals'; const root = ReactDOM.createRoot( diff --git a/examples/rspack-minimal/src/index.tsx b/examples/rspack-minimal/src/index.tsx index 032464fb6..f919dc166 100644 --- a/examples/rspack-minimal/src/index.tsx +++ b/examples/rspack-minimal/src/index.tsx @@ -1,16 +1,16 @@ import React from 'react'; import ReactDOM from 'react-dom/client'; import './index.css'; -import App from './App'; +import { App } from './App'; import reportWebVitals from './reportWebVitals'; const root = ReactDOM.createRoot( - document.getElementById('root') as HTMLElement + document.getElementById('root') as HTMLElement, ); root.render( - + , ); // If you want to start measuring performance in your app, pass a function