Skip to content

Commit

Permalink
trys manual chunks rollup option
Browse files Browse the repository at this point in the history
  • Loading branch information
loganpowell committed Dec 6, 2022
1 parent 83a0fd9 commit b145dae
Show file tree
Hide file tree
Showing 5 changed files with 96 additions and 3 deletions.
42 changes: 42 additions & 0 deletions docs/assets/citysdk.2b40948e.js

Large diffs are not rendered by default.

45 changes: 45 additions & 0 deletions docs/assets/index.0fb5cf48.js

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
window.global = window
</script>

<script type="module" crossorigin src="./assets/index.c755ac8a.js"></script>
<script type="module" crossorigin src="./assets/index.0fb5cf48.js"></script>
<link rel="modulepreload" crossorigin href="./assets/citysdk.2b40948e.js">
<link rel="stylesheet" href="./assets/index.3fce1f81.css">
</head>
<body>
Expand Down
4 changes: 2 additions & 2 deletions public/client-example/src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ function App() {
<a href="https://vitejs.dev" target="_blank">
<img src="/vite.svg" className="logo" alt="Vite logo" />
</a>
{/*<a href="https://reactjs.org" target="_blank">
<a href="https://reactjs.org" target="_blank">
<img src={reactLogo} className="logo react" alt="React logo" />
</a>*/}
</a>
</div>
<h1>Vite + React + CitySDK</h1>
<div className="card">
Expand Down
5 changes: 5 additions & 0 deletions public/client-example/vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ export default defineConfig({
build: {
rollupOptions: {
plugins: [inject({ Buffer: ['Buffer', 'Buffer'] })],
output: {
manualChunks: {
citysdk: ['citysdk'],
},
},
},
},
})

0 comments on commit b145dae

Please sign in to comment.