Socket
Socket
Sign inDemoInstall

@enhance/import-transform

Package Overview
Dependencies
20
Maintainers
7
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @enhance/import-transform

Transform that rerwrites import paths for fingerprinted bundles


Version published
Weekly downloads
582
increased by13.45%
Maintainers
7
Created
Weekly downloads
 

Readme

Source

enhance-import-transform

Transform that rerwrites import paths

Install

npm i @enhance/import-transform

Usage

import arc from '@architect/functions'
import enhance from '@enhance/ssr'
import { importTransform } from '@enhance/import-transform'

const html = enhance({
  scriptTransforms: [
    importTransform({
      lookup: arc.static,
      workers: [{ label: '__API_WORKER__', path: '/_static/worker.mjs' }]
    })
  ]
})

const myDoc = html`<my-app></my-app>`

FAQs

Last updated on 20 Feb 2024

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