Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

License

NotificationsYou must be signed in to change notification settings

unjs/impound

Repository files navigation

npm versionnpm downloadsGithub ActionsCodecov

Build plugin to restrict import patterns in certain parts of your code-base.

This package is anunplugin which provides support for a wide range of bundlers.

Usage

Install package:

# npmnpm install impound
// rollup.config.jsimport{dirname}from'node:path'import{fileURLToPath}from'node:url'import{ImpoundPlugin}from'impound'exportdefault{plugins:[ImpoundPlugin.rollup({cwd:dirname(fileURLToPath(import.meta.url)),include:[/src\/*/],patterns:[[/^node:.*/],// disallows all node imports['@nuxt/kit','Importing from @nuxt kit is not allowed in your src/ directory']// custom error message]}),],}

💻 Development

  • Clone this repository
  • EnableCorepack usingcorepack enable
  • Install dependencies usingpnpm install
  • Run interactive tests usingpnpm dev

License

Made with ❤️

Published underMIT License.

About

No description, website, or topics provided.

Resources

License

Code of conduct

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp