Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

coffee-loader

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

coffee-loader - npm Package Compare versions

Comparing version 0.7.0 to 0.7.1

2

index.js

@@ -11,3 +11,5 @@ /*

var jsRequest = loaderUtils.getCurrentRequest(this);
var query = loaderUtils.parseQuery(this.query);
var result = coffee.compile(source, {
literate: query.literate,
filename: coffeeRequest,

@@ -14,0 +16,0 @@ debug: this.debug,

2

package.json
{
"name": "coffee-loader",
"version": "0.7.0",
"version": "0.7.1",
"author": "Tobias Koppers @sokra",

@@ -5,0 +5,0 @@ "description": "coffee loader module for webpack",

@@ -8,9 +8,24 @@ # coffee-script loader for webpack

// => return exports of executed and compiled file.coffee
var exportsOfFile2 = require("coffee?literate!./file.litcoffee");
// can also compile literate files.
```
Don't forget to polyfill `require` if you want to use it in node.
See `webpack` documentation.
[Documentation: Using loaders](http://webpack.github.io/docs/using-loaders.html)
### Recommended configuration
``` javascript
{
module: {
loaders: [
{ test: /\.coffee$/, loader: "coffee-loader" },
{ test: /\.(coffee\.md|litcoffee)$/, loader: "coffee-loader?literate" }
]
}
}
```
## License
MIT (http://www.opensource.org/licenses/mit-license.php)
MIT (http://www.opensource.org/licenses/mit-license.php)
SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc