Skip to content

Commit

Permalink
Merge branch 'main' into feature/css-loader
Browse files Browse the repository at this point in the history
  • Loading branch information
gwleuverink authored Feb 20, 2024
2 parents 47dae87 + 0e62bed commit 9deb0ca
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion docs/integrations/alpinejs.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Alpine can be bootstrapped with ease using a [local module](https://laravel-bund

**_Note that if you are trying out Bundle in a project that already uses Alpine there is no need for this. You can start using imports inside your components immediately, with zero config_**

First make sure you have [path rewritig](https://laravel-bundle.dev/local-modules.html) set up. Then install Alpine.
First make sure you have [path rewriting](https://laravel-bundle.dev/local-modules.html) set up. Then install Alpine.

```bash
npm install alpinejs
Expand Down
8 changes: 2 additions & 6 deletions docs/roadmap.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,13 @@ This will reduce every import's size slightly. But more importantly; it will gre

**_Added in [v0.1.4](https://github.com/gwleuverink/bundle/releases/tag/v0.1.4)_**

Bun doesn't ship with a css loader. They have it on [the roadmap](https://github.com/oven-sh/bun/issues/159){:target="\_blank"} but no release date is known at this time. We plan to support css loading out-of-the-box as soon as Bun does!
Bun doesn't ship with a CSS loader. They have it on [the roadmap](https://github.com/oven-sh/bun/issues/159){:target="\_blank"} but no release date is known at this time. We plan to support CSS loading out-of-the-box as soon as Bun does!

Plugin support is a feature we'd like to experiment with. If that is released before Bun's builtin css loader does, it might be possible to write your own plugin to achieve this.

## Bun plugin support

We'd like to add 3rd party plugin support and, in the spirit of making things even more meta than they already are, also try to support custom plugins right from inside your `resources` directory.

## Initable exports

When importing a local module, the only method to immidiatly invoke some code is by using the [IIFE export](https://laravel-bundle.dev/local-modules.html#iife-exports) method.
When importing a local module, the only method to immediately invoke some code is by using the [IIFE export](https://laravel-bundle.dev/local-modules.html#iife-exports) method.

An alternative API is possible that would make it a bit easier to structure your code.
Consider the following example script in `resources/js/some-module.js`. (needs a jsconfig.json for path remapping)
Expand Down

0 comments on commit 9deb0ca

Please sign in to comment.