# pragma-loader

> pragma insertion loader for webpack

Latest version **0.4.0** (published 2015-07-06) · MIT license · 0 weekly downloads

## Install

```sh
npm install pragma-loader
pnpm add pragma-loader
yarn add pragma-loader
bun add pragma-loader
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.4.0 |
| Published | 2015-07-06 |
| First published | 2015-07-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Author | Quizlet |
| Maintainers | jeffchan |
| Keywords | webpack, loader, pragma |

## Links

- npm: https://www.npmjs.com/package/pragma-loader
- Repository: https://github.com/quizlet/pragma-loader
- Issues: https://github.com/quizlet/pragma-loader/issues
- npm.io page: https://npm.io/package/pragma-loader

## Dependencies (1)

- [loader-utils](https://npm.io/package/loader-utils.md) ^0.2.10

## Alternatives

- [raw-loader](https://npm.io/package/raw-loader.md) — 4.3M weekly downloads
- [plop](https://npm.io/package/plop.md) — 1.4M weekly downloads
- [webpack-deadcode-plugin](https://npm.io/package/webpack-deadcode-plugin.md) — 80.3K weekly downloads
- [@storybook/preact-vite](https://npm.io/package/@storybook/preact-vite.md) — 54.2K weekly downloads
- [vite-plugin-transform](https://npm.io/package/vite-plugin-transform.md) — 2.4K weekly downloads

## Recent versions

- 0.4.0 (latest) — 2015-07-06
- 0.3.0 — 2015-07-06
- 0.2.0 — 2015-07-06
- 0.1.0 — 2015-07-06

## README

# Pragma loader for webpack

## Usage:
Add the following to your webpack config
```js
{..., loaders: ['pragma-loader']}
```

## Options:

### Custom pragma
You'll likely want to add your own pragma. The default is `/** @pragma */`.

```js
{..., loaders: ['pragma-loader?pragma=/** @skipCompiler */']}
```

### Modify source file
This will do an async `fs.writeFile()` to add the pragma to any touched resource.
```js
{..., loaders: ['pragma-loader?modifySource']}
```

---
_Source: https://npm.io/package/pragma-loader · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
