Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

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
Appearance settings

A webpack loader for unassert: Encourages programming with assertions by providing tools to compile them away.

License

NotificationsYou must be signed in to change notification settings

unassert-js/webpack-unassert-loader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build StatusNPM packageDependency StatusLicense

webpack-unassert-loader

A webpack loader for unassert: Encourages programming with assertions by providing tools to compile them away.

Description

webpack-unassert-loader is a webpack loader module to remove assertions on build.webpack-unassert-loader appliesunassert to target sources through webpack loader chain.

Seeunassert project for more documentation.

Installation

Installwebpack-unassert-loader via npm:

$npm install --save-dev webpack-unassert-loader

Usage

Configurewebpack.config.js to applywebpack-unassert-loader through webpack loader transformation chain.

{module:{loaders:[{test:/\.js$/,loader:"webpack-unassert-loader"}]}}

You can pass unassert options by including to webpack configuration object (e.g. webpack.config.js).If not passed, default options (Same asunassert.defaultOptions()) will be used.

{assertionPatterns:['assert(value, [message])','assert.ok(value, [message])','assert.equal(actual, expected, [message])','assert.notEqual(actual, expected, [message])','assert.strictEqual(actual, expected, [message])','assert.notStrictEqual(actual, expected, [message])','assert.deepEqual(actual, expected, [message])','assert.notDeepEqual(actual, expected, [message])','assert.deepStrictEqual(actual, expected, [message])','assert.notDeepStrictEqual(actual, expected, [message])','assert.fail(actual, expected, message, operator)','assert.throws(block, [error], [message])','assert.doesNotThrow(block, [message])','assert.ifError(value)','console.assert(value, [message])'],requirePatterns:['assert = require("assert")','assert = require("power-assert")'],importPatterns:['import assert from "assert"','import * as assert from "assert"','import assert from "power-assert"','import * as assert from "power-assert"']}

Changelog

SeeCHANGELOG.md.

License

Licensed under the MIT license. SeeLICENSE.

About

A webpack loader for unassert: Encourages programming with assertions by providing tools to compile them away.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors3

  •  
  •  
  •  

[8]ページ先頭

©2009-2025 Movatter.jp