diff --git a/packages/babel-plugin/src/visitors/stylex-create/index.js b/packages/babel-plugin/src/visitors/stylex-create/index.js index 22fd1f2e..a3511f61 100644 --- a/packages/babel-plugin/src/visitors/stylex-create/index.js +++ b/packages/babel-plugin/src/visitors/stylex-create/index.js @@ -132,7 +132,7 @@ export default function transformStyleXCreate( }; }); } - + // eslint-disable-next-line prefer-const let [compiledStyles, injectedStylesSansKeyframes, classPathsPerNamespace] = stylexCreate(plainObject, state.options); diff --git a/packages/cli/src/files.js b/packages/cli/src/files.js index ffd5a9db..97087022 100644 --- a/packages/cli/src/files.js +++ b/packages/cli/src/files.js @@ -72,7 +72,7 @@ export function isJSFile(filePath: string): boolean { // e.g. ./pages/home/index.js -> ../../stylex_bundle.css export function getRelativePath(from: string, to: string): string { - const relativePath = path.posix.relative(path.parse(from).dir, to); + const relativePath = path.relative(path.parse(from).dir, to); return formatRelativePath(toPosixPath(relativePath)); }