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

@enhance/arc-plugin-rollup

Package Overview
Dependencies
Maintainers
6
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@enhance/arc-plugin-rollup - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

2

package.json
{
"name": "@enhance/arc-plugin-rollup",
"version": "1.0.0",
"version": "1.0.1",
"description": "Use rollup.js to bundle pages for the browser in your Enhance project",

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

const { join } = require('path')
const { readdir } = require('fs/promises')
const { existsSync } = require('fs')
const { rollup } = require('rollup')

@@ -14,28 +15,30 @@ const resolve = require('@rollup/plugin-node-resolve')

const files = await readdir(browserDir)
files.forEach(async file => {
const inFile = join(
cwd,
'app',
'browser',
file
)
if (existsSync(browserDir)) {
const files = await readdir(browserDir)
files.forEach(async file => {
const inFile = join(
cwd,
'app',
'browser',
file
)
const outFile = join(
cwd,
inv.static?.folder || 'public',
'pages',
file
)
const outFile = join(
cwd,
inv.static?.folder || 'public',
'pages',
file
)
const bundle = await rollup({
input: inFile,
plugins: [resolve()]
})
const bundle = await rollup({
input: inFile,
plugins: [resolve()]
})
bundle.write({
file: outFile,
format: 'es'
bundle.write({
file: outFile,
format: 'es'
})
})
})
}
}

@@ -42,0 +45,0 @@

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