Join our webinar on Wednesday, June 26, at 1pm EDTHow Chia Mitigates Risk in the Crypto Industry.Register
Socket
Socket
Sign inDemoInstall

val-loader

Package Overview
Dependencies
0
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    val-loader

val loader module for webpack


Version published
Weekly downloads
40K
decreased by-75.93%
Maintainers
1
Install size
3.04 kB
Created
Weekly downloads
 

Readme

Source

val loader for webpack

Usage

var a = require("val!./file.js");
// => excute file.js while compiling and 
//    take the result as javascript code for including

Don't forget to polyfill require if you want to use it in node. See webpack documentation.

The excution of file.js has polyfill already applied.

This loader is also useful if you want to provide data for another loader:

require("css!val!./generateCss.js");

License

MIT (http://www.opensource.org/licenses/mit-license.php)

FAQs

Last updated on 26 Sep 2012

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc