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

@fictjs/webpack-plugin

v0.28.3

Published

Webpack integration for the Fict compiler

Downloads

438

Readme

@fictjs/webpack-plugin

Webpack 5 integration for the Fict compiler. The plugin and loader cooperate so local hook metadata is available before importers receive their final transform, including cold builds and circular module graphs.

This is the supported Rust replacement for @fictjs/babel-preset. Version 0.30.1 is the final release of the preset and in-tree legacy compiler; Fict 1.0.0 removes them. Do not configure the preset alongside this loader.

const { FictWebpackPlugin } = require('@fictjs/webpack-plugin')

module.exports = {
  module: {
    rules: [
      {
        test: /\.[cm]?[jt]sx?$/,
        exclude: /node_modules/,
        use: [{ loader: require.resolve('@fictjs/webpack-plugin/loader') }],
      },
    ],
  },
  plugins: [new FictWebpackPlugin()],
}

Resumability

The Webpack integration currently supports compiler transforms and reactive metadata, but it does not yet emit split handler chunks, assign public resumable module identities, or generate a resumability manifest. The loader therefore rejects resumable: true and user-provided publicModuleId values instead of emitting source-machine file:// QRLs that cannot be loaded from a Webpack deployment. Use @fictjs/vite-plugin for resumable builds.

If another Babel transform is needed, place its loader to the left of the Fict loader so it runs after Fict compilation. Do not also configure @fictjs/babel-preset in that Babel loader. This is also the required handoff for decorators: Fict accepts and preserves current standard decorators and legacy parameter decorators, while the downstream Babel or TypeScript loader owns their runtime lowering.

Local reactive metadata and importer dependency fingerprints are persisted in Webpack module build information, so watch rebuilds and filesystem-cache restores keep unchanged importers correct. Bare package imports can consume published fict.metadata / fict.exports declarations; every consulted package manifest and metadata sidecar is registered as a Webpack dependency and included in the importer fingerprint. See Third-party library metadata. For legacy packages without exports, entry proof follows Webpack's effective mainFields, mainFiles, and extensions order and accepts only a uniquely matched file contained by the package. Active package aliasFields, directory targets, and ambiguous public spellings fail closed when Fict metadata is declared. Active extensionAlias, non-default exportsFields, custom description manifests, and malformed export maps also fail closed because they cannot be proven as the documented package contract; publishing a canonical package.json exports map is recommended. Renamed externals can use package metadata only for an unambiguous plain Node target, a CommonJS module external (commonjs* / node-commonjs), and one canonical bare package request. The output must disable output.module, use the CommonJS chunk format, and have a static flat .cjs entry filename directly under output.path, including every entry filename override. output.clean must also be disabled. Resolution follows Node require semantics from that runtime directory; Webpack aliases, custom module directories, main fields, resolver plugins, and TypeScript path mappings do not redirect it. ESM/browser/host-provided externals, global or expression externals, request arrays or property access, output paths with a symlinked existing ancestor, dynamic, nested, or non-.cjs entry filenames, and non-canonical targets remain authoritatively unresolved. The plugin does not copy or manage an external package under output.path. Package metadata paths must currently be readable through Node's filesystem APIs. Yarn PnP zip archives and other virtual filesystems are not yet supported by this integration. Webpack library metadata publishing remains a separate capability.