Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
chore: move files to use ts
  • Loading branch information
Nsttt committed Mar 5, 2025
commit 1562b72d6923fbae1c6c299f85d7895ee66790f6
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const App = () => (
margin: '0 auto',
}}
>
<h1>Zephyr Vite Consumer - {{ mfName }}</h1>
<h1>Zephyr Vite Consumer</h1>
<p>
This application consumes a federated Footer component from the provider
application.
Expand Down Expand Up @@ -42,7 +42,7 @@ const App = () => (
</div>
);

ReactDOM.createRoot(document.getElementById('root')).render(
ReactDOM.createRoot(document.getElementById('root')!).render(
<React.StrictMode>
<App />
</React.StrictMode>,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const RemoteButton = lazy(() => import('provider/Button'));

const App = () => (
<div style={{ fontFamily: 'system-ui, sans-serif', padding: '2rem' }}>
<h1>Zephyr Webpack Consumer - {{ mfName }}</h1>
<h1>Zephyr Webpack Consumer</h1>
<p>This application consumes a federated component:</p>
<div style={{ marginTop: '1rem' }}>
<Suspense fallback={<div>Loading Button from Provider...</div>}>
Expand All @@ -16,6 +16,6 @@ const App = () => (
</div>
);

const rootElement = document.getElementById('root');
const rootElement = document.getElementById('root')!;
const root = createRoot(rootElement);
root.render(<App />);
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import Button from './Button';

const App: React.FC = () => (
<div style={{ fontFamily: 'system-ui, sans-serif', padding: '2rem' }}>
<h1>Zephyr Webpack Provider - {{ mfName }}</h1>
<h1>Zephyr Webpack Provider</h1>
<p>This component is exposed via Module Federation and Zephyr:</p>
<div style={{ marginTop: '1rem' }}>
<Button />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,6 @@ const { ModuleFederationPlugin } = container;
const config: Configuration = {
entry: './src/index.ts',
mode: 'development',
devServer: {
static: {
directory: path.join(__dirname, 'dist'),
},
port: 3001,
},
output: {
publicPath: 'auto',
},
Expand Down