- Notifications
You must be signed in to change notification settings - Fork1
License
NotificationsYou must be signed in to change notification settings
unjs/impound
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
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.
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]}),],}
- Clone this repository
- EnableCorepack using
corepack enable
- Install dependencies using
pnpm install
- Run interactive tests using
pnpm dev
Made with ❤️
Published underMIT License.
About
No description, website, or topics provided.
Resources
License
Code of conduct
Stars
Watchers
Forks
Packages0
No packages published