Socket
Socket
Sign inDemoInstall

oc-vite

Package Overview
Dependencies
152
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    oc-vite

Modification of vite that allows to have external assets on library mode


Version published
Maintainers
1
Created

Readme

Source

This is a modification of Vite that allows for having external assets when importing (without inlining) when on library mode.

By default, build.assetsInlineLimit is ignored when build.lib is enabled, which makes sense for actual libraries. But in the case of oc, we want to keep it as externals, so then they can be served dynamically at runtime using renderBuiltUrl.

This repository is not even forking the library, and will, at publish time, just download the repo, modify the line responsible of allowing this, and then just build and publish.

Keywords

FAQs

Last updated on 19 May 2023

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc