Scan your whole stack
Are you using @mdscript/rspack-loader?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v0.7.0
@mdscript/rspack-loader was last scanned on 23 Nov 2026 at version 0.7.0. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 0.7.0 LATEST | 23 Nov 2026 | No rules fired |
| 0.6.0 | 21 Nov 2026 | No rules fired |
| 0.5.1 | 20 Nov 2026 | No rules fired |
| 0.5.0 | 20 Nov 2026 | Not shown |
| 0.4.4 | 26 Sep 2026 | Not shown |
Findings for v0.7.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 score describes 0.7.0; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
Rspack loader for importing MDS templates as ES modules.
npm install @mdscript/rspack-loader @mdscript/mds
npm install @mdscript/mds @rspack/core
Supported: @rspack/core ^1.0.0.
// rspack.config.js
export default {
module: {
rules: [
{
test: /\.mds$/,
use: {
loader: '@mdscript/rspack-loader',
options: {
// optional
vars: { env: 'production' },
},
},
},
],
},
};
import content from './system-prompt.mds';
// content is a compiled Markdown string
import content, { metadata } from './system-prompt.mds';
// metadata.warnings - string[]
// metadata.dependencies - string[] of project-root-relative POSIX paths of imported files
Add the module declaration to your tsconfig.json so TypeScript recognises
.mds imports:
{
"compilerOptions": {
"types": ["@mdscript/bundler-utils/mds"]
}
}
interface MdsPluginOptions {
/** Variables available for interpolation in .mds templates. */
vars?: Record<string, unknown>;
}
When running rspack's dev server with hot: true (the default), changes to .mds files
participate in HMR via rspack's module graph. Because the emitted module has no
import.meta.webpackHot self-accept footer, rspack bubbles the HMR event up to the root
entry. The result is a full page reload whenever an .mds file or any of its @import
dependencies changes. This is correct behaviour: MDS files export plain strings, not
stateful components.
hot: 'only'is a footgun. If you setdevServer: { hot: 'only' }, rspack will suppress the full page reload rather than falling back to it. The compiled-string change will not appear without a manual browser refresh. Leavehot: true(the default).
No import.meta.webpackHot footer is injected into the emitted module.
HMR event propagation is rspack's responsibility via its module graph and addDependency()
calls made by the loader. rspack 1.x uses the same HMR API shape as webpack 5.
AC-E1 — delete/recreate and new @import targets follow native rspack watch semantics.
Deleting and recreating an @import-ed dependency file, or adding an @import pointing
to a not-yet-created file, may require touching a watched file to prompt rspack to
re-resolve the dependency graph. These are native rspack limits, not bugs in the loader.
AC-E2 — adding type: mds frontmatter to an existing .md file mid-session.
rspack re-invokes the loader on rebuild, so shouldTransform returning true after
frontmatter is added will compile the file correctly on the next rebuild cycle.
AC-E3 — error overlay points at compiled JS, not the .mds source.
The loader does not emit source maps (map: null). rspack's error overlay will point at
the generated JavaScript position rather than the original .mds source line. Use the
error message text to locate the issue in your source file.
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.