Skip to content

Commit

Permalink
demo: Support empty entry JS in build mode.
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangHongEn committed Sep 29, 2024
1 parent be88f71 commit a73d9cb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
11 changes: 0 additions & 11 deletions examples/rust-vite/vite-remote/src/main.jsx
Original file line number Diff line number Diff line change
@@ -1,11 +0,0 @@
import React from 'react';
import ReactDOM from 'react-dom/client';
import App from './App';

//@ts-ignore
const root = ReactDOM.createRoot(document.getElementById('app'));
root.render(
<React.StrictMode>
<App />
</React.StrictMode>
);
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"dev": "microbundle watch --no-sourcemap --compress=false",
"build": "rimraf lib && microbundle --no-sourcemap --compress=false",
"dev-rv": "pnpm -filter 'examples-rust-vite*' run dev",
"preview-rv": "pnpm -filter 'examples-rust-vite*' run preview",
"dev-vv": "pnpm -filter 'examples-vite-vite*' run dev",
"dev-nv": "pnpm -filter 'examples-nuxt-vite-host' -filter 'examples-vite-vite-remote' run dev",
"preview-vv": "pnpm -filter 'examples-vite-vite*' run preview",
Expand Down

0 comments on commit a73d9cb

Please sign in to comment.