@modular-css/vite 29.1.0 → 29.1.2

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.
Files changed (3) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/README.md +12 -0
  3. package/package.json +3 -3
package/CHANGELOG.md CHANGED
@@ -1,5 +1,20 @@
1
1
  # Change Log
2
2
 
3
+ ## 29.1.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [[`8983ec7`](https://github.com/tivac/modular-css/commit/8983ec74fe945f2859c4078e66ef15095a75f9be)]:
8
+ - @modular-css/processor@28.1.5
9
+ - @modular-css/css-to-js@28.4.1
10
+
11
+ ## 29.1.1
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies [[`6211b85`](https://github.com/tivac/modular-css/commit/6211b859abf83f95ffcce0d741d9e82628f97eb5)]:
16
+ - @modular-css/css-to-js@28.4.0
17
+
3
18
  ## 29.1.0
4
19
 
5
20
  ### Minor Changes
package/README.md CHANGED
@@ -35,6 +35,18 @@ A minimatch pattern, or an array of minimatch patterns, relative to `process.cwd
35
35
 
36
36
  Pass an already-instantiated `Processor` instance to the rollup plugin. It will then add any files found when traversing the modules to it and both the rollup-discovered and any already-existing files will be output in the final CSS.
37
37
 
38
+ #### `styleExport`
39
+
40
+ You can disable returning the style string, eg `import { styles } from "./style.css";`, by setting `styleExport` to `false`. Defaults to `true`.
41
+
42
+ #### `defaultExport`
43
+
44
+ You can disable exporting classes as default export, eg `import styles from "./style.css";`, by setting `defaultExport` to `false`. Defaults to `true`.
45
+
46
+ #### `variableDeclaration`
47
+
48
+ You can set variable declaration kind, eg `var mc_rule = ...;`, by setting `variableDeclaration` to `var`. Defaults to `const`.
49
+
38
50
  ### Shared Options
39
51
 
40
52
  All other options are passed to the underlying `Processor` instance, see the [Processor Options](#processor-options).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@modular-css/vite",
3
- "version": "29.1.0",
3
+ "version": "29.1.2",
4
4
  "description": "vite support for modular-css",
5
5
  "main": "./vite.js",
6
6
  "repository": {
@@ -26,8 +26,8 @@
26
26
  "postcss"
27
27
  ],
28
28
  "dependencies": {
29
- "@modular-css/css-to-js": "^28.3.0",
30
- "@modular-css/processor": "^28.1.4",
29
+ "@modular-css/css-to-js": "^28.4.1",
30
+ "@modular-css/processor": "^28.1.5",
31
31
  "@rollup/pluginutils": "^4.1.2"
32
32
  },
33
33
  "peerDependencies": {