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

lightningcss-wasm

Package Overview
Dependencies
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lightningcss-wasm - npm Package Compare versions

Comparing version 1.16.0 to 1.16.1

10

lightningcss_node.js

@@ -307,2 +307,7 @@

};
imports.wbg.__wbindgen_is_object = function(arg0) {
const val = getObject(arg0);
var ret = typeof(val) === 'object' && val !== null;
return ret;
};
imports.wbg.__wbindgen_boolean_get = function(arg0) {

@@ -313,7 +318,2 @@ const v = getObject(arg0);

};
imports.wbg.__wbindgen_is_object = function(arg0) {
const val = getObject(arg0);
var ret = typeof(val) === 'object' && val !== null;
return ret;
};
imports.wbg.__wbindgen_string_get = function(arg0, arg1) {

@@ -320,0 +320,0 @@ const obj = getObject(arg1);

{
"name": "lightningcss-wasm",
"version": "1.16.0",
"version": "1.16.1",
"license": "MPL-2.0",

@@ -5,0 +5,0 @@ "description": "A CSS parser, transformer, and minifier written in Rust",

@@ -26,2 +26,3 @@ # ⚡️ Lightning CSS

- **Vendor prefixing** – Lightning CSS accepts a list of browser targets, and automatically adds (and removes) vendor prefixes.
- **Browserslist configuration** – Lightning CSS supports opt-in browserslist configuration discovery to resolve browser targets and integrate with your existing tools and config setup.
- **Syntax lowering** – Lightning CSS parses modern CSS syntax, and generates more compatible output where needed, based on browser targets.

@@ -201,2 +202,42 @@ - CSS Nesting (draft spec)

#### Browserslist configuration
If the `--browserslist` option is provided, then `lightningcss` finds browserslist configuration,
selects queries by environment and loads the resulting queries as targets.
Configuration discovery and targets resolution is modeled after the original `browserslist` nodeJS package.
The configuration is resolved in the following order:
- If a `BROWSERSLIST` environment variable is present, then load targets from its value. This is analog to the `--targets` CLI option.
_Example:_ `BROWSERSLIST="firefox ESR" lightningcss [OPTIONS] <INPUT_FILE>`
- If a `BROWSERSLIST_CONFIG` environment variable is present, then resolve the file at the provided path.
Then parse and use targets from `package.json` or any browserslist configuration file pointed to by the environment variable.
_Example:_ `BROWSERSLIST_CONFIG="../config/browserslist" lightningcss [OPTIONS] <INPUT_FILE>`
- If none of the above apply, then find, parse and use targets from the first `browserslist`, `.browserslistrc`
or `package.json` configuration file in any parent directory.
Browserslist configuration files may contain sections denoted by angular brackets `[]`.
Use these to specify different targets for different environments.
Targets which are not placed in a section are added to `defaults` and used if no section applies matches the environment.
_Example:_
```
# Defaults, applied when no other section matches the provided environment.
firefox ESR
[staging]
# Targets applied only to the staging environment.
samsung >= 4
```
When using parsed configuration from `browserslist`, `.browserslistrc` or `package.json` configuration files,
the environment determined by
- the `BROWSERSLIST_ENV` environment variable if present,
- otherwise the `NODE_ENV` environment variable if present,
- otherwise `production` is used.
If no targets are found for the resulting environment, then the `defaults` configuration section is used.
### Error recovery

@@ -212,3 +253,3 @@

```
$ node bench.js bootstrap-4.css
$ node bench.js bootstrap-4.css
cssnano: 544.809ms

@@ -235,3 +276,3 @@ 159636 bytes

$ node bench.js tailwind.css
$ node bench.js tailwind.css
cssnano: 2.198s

@@ -238,0 +279,0 @@ 1925626 bytes

Sorry, the diff of this file is not supported yet

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