@stylexjs/postcss-plugin 0.11.0 → 0.12.0

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.
package/package.json CHANGED
@@ -1,13 +1,16 @@
1
1
  {
2
2
  "name": "@stylexjs/postcss-plugin",
3
- "version": "0.11.0",
3
+ "version": "0.12.0",
4
4
  "description": "PostCSS plugin for StyleX",
5
5
  "main": "src/index.js",
6
- "repository": "https://www.github.com/facebook/stylex",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "git+https://github.com/facebook/stylex.git"
9
+ },
7
10
  "license": "MIT",
8
11
  "dependencies": {
9
12
  "@babel/core": "^7.26.8",
10
- "@stylexjs/babel-plugin": "0.11.0",
13
+ "@stylexjs/babel-plugin": "0.12.0",
11
14
  "postcss": "^8.4.49",
12
15
  "fast-glob": "^3.3.2",
13
16
  "glob-parent": "^6.0.2",
package/src/builder.js CHANGED
@@ -3,8 +3,6 @@
3
3
  *
4
4
  * This source code is licensed under the MIT license found in the
5
5
  * LICENSE file in the root directory of this source tree.
6
- *
7
- *
8
6
  */
9
7
 
10
8
  const path = require('node:path');
@@ -145,7 +143,7 @@ function createBuilder() {
145
143
  if (!bundler.shouldTransform(contents)) {
146
144
  return;
147
145
  }
148
- return bundler.transform(file, contents, babelConfig, {
146
+ return bundler.transform(filePath, contents, babelConfig, {
149
147
  isDev,
150
148
  shouldSkipTransformError,
151
149
  });
package/src/bundler.js CHANGED
@@ -3,8 +3,6 @@
3
3
  *
4
4
  * This source code is licensed under the MIT license found in the
5
5
  * LICENSE file in the root directory of this source tree.
6
- *
7
- *
8
6
  */
9
7
 
10
8
  const babel = require('@babel/core');
package/src/index.js CHANGED
@@ -3,8 +3,6 @@
3
3
  *
4
4
  * This source code is licensed under the MIT license found in the
5
5
  * LICENSE file in the root directory of this source tree.
6
- *
7
- *
8
6
  */
9
7
 
10
8
  const postcss = require('postcss');