Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@architect/plugin-bundles

Package Overview
Dependencies
Maintainers
6
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@architect/plugin-bundles

plugin-bundles Plugin for exposing bundled modules to the browser from your Architect project.

  • 3.1.1
  • Source
  • npm
  • Socket score

Version published
Maintainers
6
Created
Source

plugin-bundles

Plugin for exposing bundled modules to the browser from your Architect project.

Install

npm i @architect/plugin-bundles

Usage

In your app.arc file:

@app
bndl-mock

@http
get /yolo

# Define you plugins pragma
@plugins
# Add the plugin bundles module
architect/plugin-bundles

# Define the bundles pragma
@bundles
# Specify which modules to bundle based off of file path.
# . Hint: You can include organization node modules by quoting the path
# . i.e. hashids "@begin/hashids"
yolo /lib/yolo.mjs

Bundles are will now be available at /_static/bundles/yolo.mjs

🙌 Turn fingerprinting on and use static.json to retrieve the fingerprinted file name.

FAQs

Package last updated on 16 Sep 2022

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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc