@finos/perspective-webpack-plugin

中文文档
3.2.1发布于 2024/12/23Apache-2.0CommonJS近 30 天下载 1979

Perspective.js Webpack Plugin

此软件包已被标记为弃用

This package is no longer maintained. See https://perspective-dev.github.io/ for migration docs

原始使用文档

Perspective Webpack Plugin

For use with Webpack, this plugin allows smaller & faster loading assets. The plugin takes care of:

  • Copying the Web Worker engine assets to your output directory.
  • That's it!

Without this plugin or a manual equivalent of these steps, the WebAssembly binary we be inlined as a base64 string in the resulting .js asset, which impacts total asset size and load time. It will not in any way affect actual runtime performance - the inline and plugin compilations modes are otherwise identical.

Example

const PerspectivePlugin = require("@finos/perspective-webpack-plugin");

module.exports = {
    entry: "./in.js",
    output: {
        filename: "out.js",
        path: "build"
    },
    plugins: [new PerspectivePlugin()]
};

版本与发布记录

@finos/perspective-webpack-plugin 共发布 134 个版本,首次发布于 2019/04/30;过去 12 个月发布了 0 个版本。

版本发布日期距今
3.2.1latest2024/12/231.9 年前
3.2.02024/12/101.9 年前
3.1.82024/12/031.9 年前
3.1.72024/12/012 年前
3.1.62024/11/192 年前
3.1.52024/11/172 年前

其他发布通道:next → 3.0.0-rc.6。

关于 @finos/perspective-webpack-plugin 的常见问题

@finos/perspective-webpack-plugin 是什么?

Perspective.js Webpack Plugin注意:该包已被作者标记为弃用——This package is no longer maintained. See https://perspective-dev.github.io/ for migration docs

如何安装 @finos/perspective-webpack-plugin?

在项目目录运行 npm install @finos/perspective-webpack-plugin,或使用 pnpm add / yarn add / bun add。它还需要宿主项目提供 peer 依赖:webpack(^5.60.0)、@finos/perspective(^3.2.1)、@finos/perspective-viewer(^3.2.1)。npm 7 及以上与 pnpm 8 及以上默认会自动安装必需的 peer 依赖,Yarn 需要手动安装。

@finos/perspective-webpack-plugin 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/finos__perspective-webpack-plugin 是否存在。

@finos/perspective-webpack-plugin 支持 ESM 还是 CommonJS?

以 CommonJS 形式发布,可以直接 require();在 ES Module 项目中也可以用 import 引入(Node.js 会把 module.exports 作为默认导出)。

@finos/perspective-webpack-plugin 可以商用吗?

@finos/perspective-webpack-plugin 使用 Apache-2.0 许可。宽松许可:允许商业使用、修改和再分发,并附带明确的专利授权;分发时需保留许可与 NOTICE 文件,修改过的文件要注明改动。以上为概括,不构成法律意见,请以许可原文为准。

@finos/perspective-webpack-plugin 的下载量有多少?

根据 npm 官方下载统计,@finos/perspective-webpack-plugin 在 2026/10/15 – 2026/11/13 这 30 天内被下载 1,979 次,日均约 66 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@finos/perspective-webpack-plugin 还在维护吗?

最新版本 3.2.1 发布于 2024/12/23(1.9 年前);至今共发布 134 个版本,其中过去 12 个月发布了 0 个;首次发布于 2019/04/30。作者已将其标记为弃用,新项目建议寻找替代方案。