Skip to content

Commit

Permalink
chore: release v0.2.3
Browse files Browse the repository at this point in the history
  • Loading branch information
nonzzz committed Apr 29, 2024
1 parent 38131c8 commit 300cb60
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 6 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## v0.2.3 (2024-04-29)

### Patches

- Fix `@stylex-extend/babel-plugin` can't import not js file.

## v0.2.2 (2024-04-27)

### Patches
Expand Down
2 changes: 1 addition & 1 deletion packages/babel-plugin/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@stylex-extend/babel-plugin",
"version": "0.2.2",
"version": "0.2.3",
"description": "A friendly stylex babel plugin extension.",
"module": "./dist/index.mjs",
"main": "./dist/index.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/babel-plugin/src/visitor/import-stmt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export function scanImportStmt(stmts: NodePath<types.Statement>[], ctx: Context)
if (!ctx.options.enableInjectGlobalStyle) continue
const [filePath, fileName] = ctx.importPathResolver(stmt.node.source.value)
const codeContent = fs.readFileSync(filePath, 'utf-8')
const ast = parseSync(codeContent, { babelrc: true })
const ast = parseSync(codeContent, { babelrc: true, parserOpts: { plugins: ['jsx', 'typescript'] } })
const seens = new Set<string>(specs.map((s) => getStringValue(s.imported)))
traverse(ast!, {
VariableDeclaration(path) {
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"main": "dist/index.js",
"types": "dist/index.d.ts",
"module": "dist/index.mjs",
"version": "0.2.2",
"version": "0.2.3",
"license": "MIT",
"scripts": {
"build": "tsup"
Expand Down
2 changes: 1 addition & 1 deletion packages/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"main": "./src/index.js",
"module": "./src/index.js",
"types": "./src/index.d.ts",
"version": "0.2.2",
"version": "0.2.3",
"devDependencies": {
"@types/react": "^18.2.69"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/shared/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@stylex-extend/shared",
"description": "Shared utilities for StyleX Extend",
"version": "0.2.2",
"version": "0.2.3",
"license": "MIT",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
Expand Down
2 changes: 1 addition & 1 deletion packages/vue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"main": "./index.js",
"module": "./index.js",
"types": "./index.d.ts",
"version": "0.2.2",
"version": "0.2.3",
"devDependencies": {
"vue": "^3.4.21"
},
Expand Down

0 comments on commit 300cb60

Please sign in to comment.