carbon-preprocess-svelte
Advanced tools
Comparing version 0.11.6 to 0.11.7
@@ -36,3 +36,5 @@ "use strict"; | ||
const original_css = assets[id].source(); | ||
const optimized_css = (0, create_optimized_css_1.createOptimizedCss)(Object.assign(Object.assign({}, this.options), { source: original_css, ids })); | ||
const optimized_css = (0, create_optimized_css_1.createOptimizedCss)(Object.assign(Object.assign({}, this.options), { source: Buffer.isBuffer(original_css) | ||
? original_css.toString() | ||
: original_css, ids })); | ||
compilation.updateAsset(id, new RawSource(optimized_css)); | ||
@@ -39,0 +41,0 @@ if (this.options.verbose) { |
{ | ||
"name": "carbon-preprocess-svelte", | ||
"version": "0.11.6", | ||
"version": "0.11.7", | ||
"license": "Apache-2.0", | ||
@@ -12,4 +12,4 @@ "description": "Svelte preprocessors for the Carbon Design System", | ||
"magic-string": "^0.30.11", | ||
"postcss": "^8.4.41", | ||
"postcss-discard-empty": "^6.0.3" | ||
"postcss": "^8.4.47", | ||
"postcss-discard-empty": "^7.0.0" | ||
}, | ||
@@ -16,0 +16,0 @@ "repository": { |
@@ -56,4 +56,4 @@ # carbon-preprocess-svelte | ||
> When this preprocessor was first created, there was no workaround to optimize slow cold start times with Vite in development. | ||
> As of today, [@sveltejs/vite-plugin-svelte](https://github.com/sveltejs/vite-plugin-svelte) enables [`prebundleSvelteLibraries: true`](https://github.com/sveltejs/vite-plugin-svelte/blob/ba4ac32cf5c3e9c048d1ac430c1091ca08eaa130/docs/config.md#prebundlesveltelibraries) by default, which greatly improves development times. | ||
> However, this preprocessor is still useful for non-Vite bundlers, like Rollup and Webpack. Additionally, this preprocessor can still improve cold start development times, even when `prebundleSvelteLibraries` is enabled. | ||
> Today, [@sveltejs/vite-plugin-svelte](https://github.com/sveltejs/vite-plugin-svelte) enables [`prebundleSvelteLibraries: true`](https://github.com/sveltejs/vite-plugin-svelte/blob/ba4ac32cf5c3e9c048d1ac430c1091ca08eaa130/docs/config.md#prebundlesveltelibraries) by default. | ||
> However, this preprocessor is still useful for non-Vite bundlers, like Rollup and Webpack. Also, it can further improve cold start development times even with `prebundleSvelteLibraries: true`. | ||
@@ -60,0 +60,0 @@ #### SvelteKit |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
82569
534
+ Addedpostcss-discard-empty@7.0.0(transitive)
- Removedpostcss-discard-empty@6.0.3(transitive)
Updatedpostcss@^8.4.47
Updatedpostcss-discard-empty@^7.0.0