@stylexjs/rollup-plugin 0.16.2 → 0.16.3

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/lib/es/index.mjs CHANGED
@@ -3,7 +3,7 @@ import stylexBabelPlugin from '@stylexjs/babel-plugin';
3
3
  import flowSyntaxPlugin from '@babel/plugin-syntax-flow';
4
4
  import jsxSyntaxPlugin from '@babel/plugin-syntax-jsx';
5
5
  import typescriptSyntaxPlugin from '@babel/plugin-syntax-typescript';
6
- import path from 'path';
6
+ import path from 'node:path';
7
7
  import { transform } from 'lightningcss';
8
8
  import browserslist from 'browserslist';
9
9
  import { browserslistToTargets } from 'lightningcss';
package/lib/index.js CHANGED
@@ -9,7 +9,7 @@ var _babelPlugin = _interopRequireDefault(require("@stylexjs/babel-plugin"));
9
9
  var _pluginSyntaxFlow = _interopRequireDefault(require("@babel/plugin-syntax-flow"));
10
10
  var _pluginSyntaxJsx = _interopRequireDefault(require("@babel/plugin-syntax-jsx"));
11
11
  var _pluginSyntaxTypescript = _interopRequireDefault(require("@babel/plugin-syntax-typescript"));
12
- var _path = _interopRequireDefault(require("path"));
12
+ var _nodePath = _interopRequireDefault(require("node:path"));
13
13
  var _lightningcss = require("lightningcss");
14
14
  var _browserslist = _interopRequireDefault(require("browserslist"));
15
15
  var _crypto = _interopRequireDefault(require("crypto"));
@@ -83,7 +83,7 @@ function stylexPlugin({
83
83
  babelrc: false,
84
84
  filename: id,
85
85
  presets,
86
- plugins: [...plugins, /\.jsx?/.test(_path.default.extname(id)) ? _pluginSyntaxFlow.default : [_pluginSyntaxTypescript.default, {
86
+ plugins: [...plugins, /\.jsx?/.test(_nodePath.default.extname(id)) ? _pluginSyntaxFlow.default : [_pluginSyntaxTypescript.default, {
87
87
  isTSX: true
88
88
  }], _pluginSyntaxJsx.default, _babelPlugin.default.withOptions({
89
89
  ...options,
package/lib/index.js.flow CHANGED
@@ -7,10 +7,10 @@
7
7
  * @flow strict
8
8
  */
9
9
 
10
- import { type PluginItem } from '../flow_modules/@babel/core';
10
+ import { type PluginItem } from '@babel/core';
11
11
  import type { Options } from '@stylexjs/babel-plugin';
12
12
  import type { TransformOptions } from 'lightningcss';
13
- import type { Plugin } from '../flow_modules/rollup';
13
+ import type { Plugin } from 'rollup';
14
14
  export type PluginOptions = $ReadOnly<{
15
15
  ...Partial<Options>,
16
16
  fileName?: string,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stylexjs/rollup-plugin",
3
- "version": "0.16.2",
3
+ "version": "0.16.3",
4
4
  "description": "Rollup plugin for StyleX",
5
5
  "main": "./lib/index.js",
6
6
  "module": "./lib/es/index.mjs",
@@ -35,7 +35,7 @@
35
35
  "@babel/plugin-syntax-flow": "^7.26.0",
36
36
  "@babel/plugin-syntax-jsx": "^7.25.9",
37
37
  "@babel/plugin-syntax-typescript": "^7.25.9",
38
- "@stylexjs/babel-plugin": "0.16.2",
38
+ "@stylexjs/babel-plugin": "0.16.3",
39
39
  "lightningcss": "^1.29.1"
40
40
  },
41
41
  "devDependencies": {