Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

vite-plugin-drupal-npm-libraries

Latest version: v0.1.0

Overview

Last scanned
24 Nov 2026
Published
24 Nov 2026
npm package Publisher: gordonh
0 Stars
0 Forks
2 Versions
JavaScript Repo language

Scan summary

vite-plugin-drupal-npm-libraries was last scanned on 24 Nov 2026 at version 0.1.0. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 2 versions, all published on 24 Nov 2026.
  • Findings: No rules fired in version 0.1.0.

Versions

2 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.1.0 LATEST 24 Nov 2026 No rules fired
0.0.0-stage 24 Nov 2026 Not shown

No rules fired in 0.1.0

Findings

Findings for v0.1.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.1.0; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

vite-plugin-drupal-npm-libraries

Copies prebuilt files out of npm packages into the Vite build output and registers them in the Vite manifest. Drupal libraries can then reference the files by their node_modules path with vite: true, and drupal/vite rewrites them to the copy (or to the dev server while Vite is running).

Usually vite-plugin-drupal-libraries configures it from *.libraries.yml, so you don't need to add it yourself. To use it directly:

import npmLibraries from 'vite-plugin-drupal-npm-libraries';

npmLibraries({
  'powerbi-client': { files: ['dist/powerbi.min.js'], global: true },
  'countup.js': { files: ['dist/countUp.min.js'], namespace: 'countUp' },
  toc: { files: ['dist/toc.min.js'], global: true, version: '0.3.2' },
  dayjs: { files: [{ path: 'dayjs.min.js', global: true }, { path: 'plugin/utc.js', global: true }] },
  leaflet: { files: ['dist/leaflet.js', 'dist/leaflet.css'], global: true, copy: ['dist/images/*'] },
});

Options, per package

  • files: paths inside the package to copy, either strings or { path, global, namespace } to set the options below per file.
  • global: the file is a UMD/IIFE script that expects to run as a classic script. drupal/vite loads rewritten JS as type="module", where top-level this is undefined, so the file is wrapped to run with this bound to the global object. Set it to a name (or list of names) instead of true when the script declares its globals as top-level variables (var Foo = ...); those are assigned to globalThis explicitly.
  • namespace: exposes the file's exports as globalThis[namespace], so other Drupal libraries can use it without importing it. An ES module is copied as-is, with its named exports also assigned to the global. A CommonJS file is wrapped with a module / exports stub; only self-contained files work (require() isn't supported).
  • copy: other files of the package to copy as they are, as patterns relative to the package (* within a directory, ** across them): files a script loads itself at runtime.
  • version: the version in the copies' <package>@<version>/ directory, instead of the one in the package's package.json.

Copies keep their path inside the package, under <package>@<version>/ in the build output. Files a copied stylesheet references with url() or @import are copied too, so its relative URLs keep working.

OX Radar and Response Center

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.

Where it’s listed

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).

  • npm vite-plugin-drupal-npm-libraries

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Cry2Wolf: How to Tell a Real Bug from a Nothingburger
AI & VibeSec

Cry2Wolf: Not Every Branded Bug Deserves a Fire Drill

Copy of Template Design OX Blog (2)
Research

NGINX2Root: Five Critical NGINX Flaws Expose Web Servers to Remote Code Execution

Vulnerability Insights

OpenSSH Password Authentication Bypass on Alpine Linux (*sshole) – CVE-2026-123158

Frame 2085668439 (1)
Group 1261154229