Socket
Book a DemoInstallSign in
Socket

@kitschpatrol/tweakpane-plugin-rotation

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@kitschpatrol/tweakpane-plugin-rotation

A fork of tweakpane-plugin-rotation with build optimizations.

latest
Source
npmnpm
Version
0.2.1-beta.2
Version published
Weekly downloads
2.8K
7.67%
Maintainers
1
Weekly downloads
 
Created
Source

@kitschpatrol/tweakpane-plugin-rotation

NPM Package @kitschpatrol/tweakpane-plugin-rotation

Overview

This is a fork of 0b5vr's tweakpane-plugin-rotation with externalized dependencies.

This allows for smaller bundled file sizes in projects using multiple Tweakpane plugins.

It is published to NPM primarily for the Svelte Tweakpane UI project, and will be kept in sync with the upstream version of the plugin, with minimal changes other than dependency externalization.

For most use cases, you probably don't want this fork!

Background

The Rollup configuration provided in the Tweakpane plugin template does not externalize @tweakpane/core as a production dependency.

Instead, it gets built into the single-file plugin artifact, which is what's published to NPM and imported by plugin consumers. This makes it easy to import as an ES module from a URL, but means that larger projects importing multiple Tweakpane plugins end up with duplicate copies of the @tweakpane/core code, adding about ~100 Kb to the final minified build for each plugin after the first.

Externalizing this dependency allows build tools like vite to share a single instance of the @tweakpane/core code across multiple plugins.

If you're not using a bundler, direct ESM imports from URLs can still work by defining the @tweakpane/core dependency in an importmap.

Implementation notes

This fork uses the main branch for the releases instead of dev.

Note the package's name change from @0b5vr/tweakpane-plugin-rotation to @kitschpatrol/tweakpane-plugin-rotation.

PNPM is used as the package manager.

Versioning

In addition to the dependency externalization change, this fork also includes assorted dependency updates. In an effort to stay in sync with future upstream versions, intra-minor-version releases of the fork are tagged as "betas" of what would / will be the next patch release upstream.

Keywords

npm-package

FAQs

Package last updated on 04 Mar 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts