Scan your whole stack
From OX Research Newsroom
Are you using @ohos-ports/swc-plugin-auto-css-modules?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v1.6.0-beta.0
@ohos-ports/swc-plugin-auto-css-modules was last scanned on 27 Nov 2026 at version 1.6.0-beta.0. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 1.6.0-beta.0 LATEST | 27 Nov 2026 | 1 rule fired |
| 0.0.0-stage | 27 Nov 2026 | Not shown |
Findings for v1.6.0-beta.0. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
The package includes a WebAssembly (.wasm) module. It cannot be reviewed as source, but it runs sandboxed inside the JavaScript runtime and can access only what the host code gives it. WebAssembly is common in parsers, codecs and cryptography libraries. Shown for awareness.
LOWThe score describes 1.6.0-beta.0; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
Auto css modules plugin for swc.
This is the @ohos-ports port of swc-plugin-auto-css-modules. The shipped
swc_plugin_auto_css_modules.wasm has been rebuilt from the upstream v1.6.0
Rust source with swc_core 77.0.0 (rkyv-0.8) to ABI-match the
@ohos-ports/swc-core hosts on openharmony.
On openharmony, use @ohos-ports/swc-core >= 1.16.2-beta.0 as the host —
the official @swc/core does not support openharmony. The upstream ABI
compatibility table below (@swc/core 1.3.106 ~ latest) applies to
non-openharmony platforms.
pnpm i -D @ohos-ports/swc-plugin-auto-css-modules @ohos-ports/swc-core
pnpm i -D swc-plugin-auto-css-modules
You should install the following versions:
@swc/core version |
working version |
|---|---|
latest > version >= 1.3.106 |
swc-plugin-auto-css-modules@1.6.0 |
1.3.106 > version >= 1.3.63 |
swc-plugin-auto-css-modules@1.5.0 |
1.3.63 > version >= 1.3.41 |
swc-plugin-auto-css-modules@1.4.0 |
1.3.41 > version >= 1.3.24 |
swc-plugin-auto-css-modules@1.3.0 |
// swc config
{
jsc: {
experimental: {
plugins: [
+ ['swc-plugin-auto-css-modules', {}]
],
},
}
}
This plugin will auto add the ?modules suffix.
import styles from './index.less'
// to
import styles from './index.less?modules'
core-js importLock core-js import by config lock_core_js_pkg_path.
plugins: [
[
'swc-plugin-auto-css-modules',
{ lock_core_js_pkg_path: dirname(require.resolve('core-js/package.json')) },
],
]
import 'core-js/es/modules'
// to
import '/node_modules/**/core-js/es/modules'
See types file
import type { ISwcPluginAutoCssModulesConfig } from 'swc-plugin-auto-css-modules'
MIT
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.