bun_bun_bundle 0.16.0 → 0.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a2e15190a33ba91af0c840a7d84afd1e3e95b5689482492e591c095a2ccea097
4
- data.tar.gz: 11a47245181f06092afe759fc560e96a20a4dcb15c6829804489bdf0cdd2e538
3
+ metadata.gz: 9c79743b209590b3032ac218c34f97bb265a730c6d531a8e610535cc7091b904
4
+ data.tar.gz: 72c36c431475e6ae64cd6e9f9b1bfd5e4e6636fe816c08dab890dcd8938d569a
5
5
  SHA512:
6
- metadata.gz: c43139a7c5ff8ca1feeec696d72933ffec2efc07e9bbe8dc5187f629baea8155f266b4df47a039cc210b7e683830c83c1a26a890471537c1e043fff2e5d0b83f
7
- data.tar.gz: '0431696314fbd0045ded2028711cae3fe8033910516183bf0d93b27b36994826b5b6c936cd2e23e485d64cc577bdba39ae398c312c987a316f6e44c8c98dab02'
6
+ metadata.gz: 2cb7ae2c2abc22ec33e8476a595c083fc9f380020a5c53d1601b34c4e3937ecda165e3b707037a6873cbc3aef79a6a549ddbded82b7e4dc5b3f8c8fd355a256f
7
+ data.tar.gz: f224269b08ada52408905e18b29f63a9f03f153cd755add16247b199c25ae551cec554c58bdf3f21fa025a104872667806c2a340c9bc2c95149f7569ec3dce14
data/README.md CHANGED
@@ -447,6 +447,10 @@ Reference custom plugins by their file path in your config:
447
447
  }
448
448
  ```
449
449
 
450
+ A plugin list replaces the built-in list for that asset type only. In the
451
+ example above both lists re-include the defaults, but overriding just `"js"`
452
+ leaves the default `css` plugins (`aliases`, `cssGlobs`) in place.
453
+
450
454
  > [!WARNING]
451
455
  > The order of the plugins matters here. For example, the aliases plugin needs
452
456
  > to resolve the paths first before the glob plugin can do its work. Keep that
@@ -141,7 +141,6 @@ export default {
141
141
  const json = readFileSync(join(this.root, this.CONFIG_PATH), 'utf-8')
142
142
  const user = JSON.parse(json)
143
143
  this.config = this.deepMerge(defaults, user)
144
- if (user.plugins != null) this.config.plugins = user.plugins
145
144
  } catch {
146
145
  this.config = defaults
147
146
  }
@@ -1,6 +1,6 @@
1
1
  const CSS_REGEX = /((?:url\(\s*|@import\s+|not\s+)['"]?(?:glob:)?)\$\//g
2
2
  const JS_REGEX =
3
- /((?:from\s+|require\s*\(\s*|import\s*\(\s*)['"](?:glob:)?)\$\//g
3
+ /((?:from\s+|import\s+|require\s*\(\s*|import\s*\(\s*)['"](?:glob:)?)\$\//g
4
4
 
5
5
  // Resolves `$/` root aliases in CSS url() references and JS/CSS imports.
6
6
  // e.g. url('$/app/assets/images/foo.png') → url('/absolute/root/app/assets/images/foo.png')
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module BunBunBundle
4
- VERSION = '0.16.0'
4
+ VERSION = '0.17.0'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bun_bun_bundle
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.16.0
4
+ version: 0.17.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Wout Fierens