Skip to content

Commit

Permalink
add note
Browse files Browse the repository at this point in the history
  • Loading branch information
gwleuverink committed Jan 11, 2024
1 parent 39de577 commit 935232a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion docs/caveats.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ title: Caveats

## Caveats

A couple of things to be aware of.
A couple of things to be aware of.

### Tree shaking

Expand All @@ -21,6 +21,9 @@ Chunking of dynamicly fetched pieces of shared code is currently not supported b

Due to Bun's path remapping behaviour Bundle is not able to split chunks from modules and assets imported from your local `resources` directory. This could definetly work for shared imports from `node_modules` in the future.

<!-- TODO: Add a detailed treeview of chunking vs how it's done now -->
<!-- NOTE: A workaround where your local scripts also use _bundle() & we preload all dependencies in the blade template is possible. But less than ideal. -->

### Don't pass dynamic variables to `<x-bundle />`

This will work perfectly fine during development, but this can't be evaluated when compiling all your code for your production environment.
Expand Down

0 comments on commit 935232a

Please sign in to comment.