Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
gwleuverink committed Jan 11, 2024
1 parent b17d98b commit eb79118
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions docs/advanced-usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,16 @@ In order to use this script directly in your blade views, you simply need to imp
If a module supports per method exports, like `lodash` does, it is recomended to import the single method instead of the whole module & only retrieving the desired export later.

```html
<x-bundle import="lodash/filter" as="filter" /> <!-- 25kb -->
<x-bundle import="lodash/filter" as="filter" />
<!-- 25kb -->
<!-- as opposed to -->
<x-bundle import="lodash" as="lodash" /> <!-- 78kb -->
<x-bundle import="lodash" as="lodash" />
<!-- 78kb -->
```

## Sourcemaps

Sourcemaps are disabled by default. You may enable this by setting the `BUNDLE_SOURCEMAPS_ENABLED` to true or by publishing and updating the bundle config.
Sourcemaps are disabled by default. You may enable this by setting `BUNDLE_SOURCEMAPS_ENABLED` to true in your env file or by publishing and updating the bundle config.

Sourcemaps will be generated in a separate file so this won't affect performance for the end user.

Expand Down

0 comments on commit eb79118

Please sign in to comment.