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 - npm Package Compare versions

Comparing version 3.0.4 to 3.0.5

2

package.json
{
"name": "@architect/plugin-bundles",
"version": "3.0.4",
"version": "3.0.5",
"description": "plugin-bundles Plugin for exposing bundled modules to the browser from your Architect project.",

@@ -5,0 +5,0 @@ "main": "src/plugins/bundles/index.js",

@@ -1,2 +0,2 @@

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

@@ -27,5 +27,6 @@

yolo /lib/yolo.mjs
``
```
Bundles are will now be available at `/_static/bundles/yolo.mjs`
[If you have fingerprinting turned on then you can use `static.json` to look up the fingerprinted file name.](https://arc.codes/docs/en/guides/frontend/static-assets#fingerprint)
> 🙌 [Turn fingerprinting on and use `static.json` to retrieve the fingerprinted file name.](https://arc.codes/docs/en/guides/frontend/static-assets#fingerprint)
const path = require('path')
const { build } = require('esbuild')
const fs = require('fs')

@@ -24,4 +23,3 @@ const sandbox = {

async function verify (arc) {
if (Array.isArray(arc.bundles) === false)
throw Error('missing or invalid @bundles pragma')
if (!arc.bundles) return
for (let tuple of arc.bundles) {

@@ -47,2 +45,3 @@ if (Array.isArray(tuple)) {

async function bundle (arc, inventory) {
if (!arc.bundles) return
const pathToStatic = path.join(inventory._project.cwd, inventory?.static?.folder || 'public')

@@ -62,8 +61,4 @@ const pathToStaticBundles = path.join(pathToStatic, 'bundles')

}
fs.writeFileSync(
path.join(pathToStatic, '.gitignore'),
'bundles'
)
}
module.exports = { sandbox, deploy }
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