# vdt-loader

> A loader of vdt for webpack.

Latest version **1.5.1** (published 2018-08-17) · ISC license · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.5.1 |
| Published | 2018-08-17 |
| First published | 2016-09-12 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 4.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | jiawei23716@sina.com |
| Maintainers | javey, lynn.wang, x6doooo |

## Links

- npm: https://www.npmjs.com/package/vdt-loader
- npm.io page: https://npm.io/package/vdt-loader

## Dependencies (2)

- [source-map](https://npm.io/package/source-map.md) ^0.7.3
- [loader-utils](https://npm.io/package/loader-utils.md) ^1.1.0

## Recent versions

- 1.5.1 (latest) — 2018-08-17
- 3.0.0-beta.1 (beta) — 2021-05-12
- 3.0.0-beta.0 — 2021-05-12
- 1.5.0 — 2018-08-15
- 1.4.4 — 2018-05-01
- 1.4.3 — 2018-04-16
- 1.4.2 — 2018-04-09
- 1.4.1 — 2017-12-22
- 1.4.0 — 2017-12-21
- 1.3.2 — 2017-12-19
- 1.3.1 — 2017-12-11
- 1.3.0 — 2017-12-06
- 1.2.1 — 2017-10-11
- 1.2.0 — 2017-10-10
- 1.1.3 — 2017-07-17
- … 6 more at https://npm.io/package/vdt-loader/versions

## README

# vdt loader for webpack

## Installation

```npm
npm install vdt-loader --save-dev
```

## Usage

```js
require('vdt?noWith!./file.vdt');
```

Alternately, set this in config file.

For webpack@1.0

```js
module: {
    loaders: [
        test: /\.vdt$/,
        loader: 'vdt-loader?noWith&delimiters={{}}'
    ]
}
```

For webpack@2.0/3.0

```js
module: {
    rules: [
        {
            test: /\.vdt$/,
            use: [
                {
                    loader: 'vdt-loader',
                    options: {
                        noWith: true,
                        delimiters: ['{{', '}}']
                    }
                }
            ]
        }
    ]
}
```

## Querystring

[Vdt options](https://github.com/Javey/vdt.js#vdtsource-options)

You can also pass querystring like below

```js
'vdt-loader?options=' + encodeURIComponent(JSON.stringify({
    noWith: true,
    delimiters: ['{{', '}}']
}))
```

## ***Notice***
1. v1.4.2 之后默认全部导出为es6模块 , 不再支持导出commonjs模块

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