
Security News
US Government Forces Anthropic to Pull Claude Fable Days After Launch
Anthropic says the directive cited national security concerns over a narrow jailbreak, but offered no specific technical details.
@zerollup/base-url
Advanced tools
Configure assets base url in runtime. Modularized webpack_public_path analog.
How to configure:
./my-module-name/src/bootstrap.ts
import bu from '@zerollup/base-url'
bu.assets = 'https://my-statics.com/assets/'
./my-module-name/src/index.ts
import './bootstrap'
import svg from './my-pic.svg'
console.log(svg)
Rollup rollup-plugin-assets transpile it into
./my-module-name/src/index.js
bu.assets = 'https://my-statics.com/assets/'
console.log(bu.assets + 'my-module-name/my-pic.svg')
First set baseUrl.assets value, place setup code to separate bootstrap file and import it first in index.js.
Example zerollup demo site bundle.
Install typescript asset module resolver fix:
cp -rf ./node_modules/@zerollup/base-url/@types/assets-fix ./node_modules/@types
FAQs
Configure assets base url in runtime
The npm package @zerollup/base-url receives a total of 38 weekly downloads. As such, @zerollup/base-url popularity was classified as not popular.
We found that @zerollup/base-url demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.

Security News
Anthropic says the directive cited national security concerns over a narrow jailbreak, but offered no specific technical details.

Security News
A network of 152 Chrome live wallpaper extensions hid ad tracking and made extension-driven traffic look like Google search clicks.

Company News
Socket’s first CISO brings deep experience securing high-growth SaaS companies as open source supply chain threats accelerate.