@cssxjs/babel-plugin-rn-stylename-inline 0.2.0 → 0.2.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 +12 -0
  2. package/index.js +1 -3
  3. package/package.json +4 -4
package/CHANGELOG.md CHANGED
@@ -1,3 +1,15 @@
1
+ # v0.2.1 (Tue Nov 04 2025)
2
+
3
+ #### 🐛 Bug Fix
4
+
5
+ - fix: fix the auto-removal of css, styl, pug; add explicit check that pug is imported before trying to use it ([@cray0000](https://github.com/cray0000))
6
+
7
+ #### Authors: 1
8
+
9
+ - Pavel Zhukov ([@cray0000](https://github.com/cray0000))
10
+
11
+ ---
12
+
1
13
  # v0.2.0 (Tue Nov 04 2025)
2
14
 
3
15
  #### 🚀 Enhancement
package/index.js CHANGED
@@ -4,7 +4,7 @@ const template = require('@babel/template').default
4
4
  const parser = require('@babel/parser')
5
5
  const t = require('@babel/types')
6
6
  const compilers = require('./compilers')
7
- const DEFAULT_MAGIC_IMPORTS = ['cssxjs']
7
+ const DEFAULT_MAGIC_IMPORTS = ['cssxjs', 'startupjs']
8
8
  const DEFAULT_PLATFORM = 'web'
9
9
 
10
10
  const buildConst = template(`
@@ -117,10 +117,8 @@ function getUsedCompilers ($program, state) {
117
117
  const { local, imported } = $specifier.node
118
118
  if (compilers[imported.name]) {
119
119
  res[local.name] = compilers[imported.name]
120
- $specifier.remove()
121
120
  }
122
121
  }
123
- if ($import.get('specifiers').length === 0) $import.remove()
124
122
  }
125
123
  return res
126
124
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cssxjs/babel-plugin-rn-stylename-inline",
3
- "version": "0.2.0",
3
+ "version": "0.2.2",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -26,13 +26,13 @@
26
26
  "@babel/parser": "^7.0.0",
27
27
  "@babel/template": "^7.4.0",
28
28
  "@babel/types": "^7.0.0",
29
- "@cssxjs/bundler": "^0.2.0",
30
- "@cssxjs/runtime": "^0.2.0"
29
+ "@cssxjs/bundler": "^0.2.2",
30
+ "@cssxjs/runtime": "^0.2.2"
31
31
  },
32
32
  "devDependencies": {
33
33
  "@babel/plugin-syntax-jsx": "^7.0.0",
34
34
  "babel-plugin-tester": "^9.1.0",
35
35
  "jest": "^30.0.4"
36
36
  },
37
- "gitHead": "a80a44b4d14c116871ca03997ce772b6beabf5d8"
37
+ "gitHead": "ac21101fdcc9a9a6e5eeeb3f89825bf237e5066a"
38
38
  }