Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

carbon-preprocess-svelte

Package Overview
Dependencies
Maintainers
0
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

carbon-preprocess-svelte - npm Package Compare versions

Comparing version 0.11.6 to 0.11.7

4

dist/plugins/OptimizeCssPlugin.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc