esbuild-css-modules-plugin
Advanced tools
Comparing version 2.3.0 to 2.3.1
@@ -0,1 +1,5 @@ | ||
## V2.3.1 | ||
- Fix [issue#33](https://github.com/indooorsman/esbuild-css-modules-plugin/issues/33) | ||
## V2.3.0 | ||
@@ -2,0 +6,0 @@ |
@@ -51,2 +51,5 @@ const path = require('path'); | ||
const doInject = () => { | ||
if (typeof document === 'undefined') { | ||
return; | ||
} | ||
let root = document.querySelector('${injectToSelector}'); | ||
@@ -53,0 +56,0 @@ if (root && root.shadowRoot) { |
@@ -58,2 +58,5 @@ const path = require('path'); | ||
(function() { | ||
if (typeof document === 'undefined') { | ||
return; | ||
} | ||
if (!document.getElementById(digest)) { | ||
@@ -60,0 +63,0 @@ var el = document.createElement('style'); |
{ | ||
"name": "esbuild-css-modules-plugin", | ||
"version": "2.3.0", | ||
"version": "2.3.1", | ||
"description": "A esbuild plugin to bundle css modules into js(x)/ts(x).", | ||
@@ -5,0 +5,0 @@ "main": "./index.js", |
@@ -59,3 +59,3 @@ # esbuild-css-modules-plugin | ||
v2: true // experimental. v2 can bundle images in css, note if set `v2` to true, other options except `inject` will be ignored. and v2 only works with `bundle: true`. | ||
v2: true, // experimental. v2 can bundle images in css, note if set `v2` to true, other options except `inject` will be ignored. and v2 only works with `bundle: true`. | ||
v2CssModulesOption: { // Optional. | ||
@@ -62,0 +62,0 @@ dashedIndents: boolean; // Optional. refer to: https://github.com/parcel-bundler/parcel-css/releases/tag/v1.9.0 |
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
34212
876