npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

unplugin-markup-import

v0.2.0

Published

Unplugin for including .svelte and .astro files in bundler output with correct import graph resolution.

Readme

unplugin-markup-import

Experimental build helper for preserving markup modules in the lingui-for project build.

[!WARNING] This package is built specifically for the lingui-for monorepo and is not intended as a general-purpose tool. As such, it is experimental, carries no support commitment, and its API and behavior may change without notice. Unless you are solving a similar packaging problem for shipped .svelte or .astro runtime files, you probably do not want this package.

What It Does

unplugin-markup-import is an unplugin-based build helper that preserves selected markup files in bundle output and rewrites certain relative imports through generated facade modules.

In this repository it is used during package builds so runtime markup files can be emitted correctly from published packages.

Current framework handling:

  • svelte
  • astro

Where It Is Used Here

Install

vp add -D unplugin-markup-import

# or run one of:
npm install -D unplugin-markup-import
pnpm add -D unplugin-markup-import
yarn add -D unplugin-markup-import

Minimal Usage

Rolldown / tsdown style usage:

import markupImport from "unplugin-markup-import/rolldown";

export default {
  plugins: [markupImport()],
};

Astro-markup-only usage:

import markupImport from "unplugin-markup-import/rolldown";

export default {
  plugins: [markupImport({ frameworks: ["astro"] })],
};

Options

import markupImport from "unplugin-markup-import/rolldown";

markupImport({
  rootDir: process.cwd(),
  sourceDir: "src",
  frameworks: ["svelte"],
  exclude: ["**/*.test.svelte"],
});

Supported options:

  • rootDir: base directory used to resolve the default sourceDir
  • sourceDir: directory containing markup files to scan and rewrite
  • frameworks: markup frameworks to preserve; supported values are "svelte" and "astro"
  • include: glob or globs for markup files to preserve
  • exclude: glob or globs for markup files to skip, such as test fixtures

Entrypoints

  • unplugin-markup-import
  • unplugin-markup-import/vite
  • unplugin-markup-import/rollup
  • unplugin-markup-import/webpack
  • unplugin-markup-import/esbuild
  • unplugin-markup-import/rolldown
  • unplugin-markup-import/rspack
  • unplugin-markup-import/bun
  • unplugin-markup-import/types

Notes

  • This package exists to solve a packaging detail in lingui-for, not to provide a polished public abstraction.
  • The public surface is intentionally small, but the underlying behavior is specialized.
  • Expect rough edges if you try to use it outside this repository.