buble-loader
Advanced tools
Comparing version 0.4.0 to 0.4.1
@@ -29,3 +29,3 @@ 'use strict'; | ||
module.exports = function BubleLoader(source, inputSourceMap) { | ||
var loaderOptions = loaderUtils.parseQuery(this.query); | ||
var loaderOptions = typeof this.query === 'string' ? loaderUtils.parseQuery(this.query) : this.query; | ||
var transformed; | ||
@@ -32,0 +32,0 @@ try { |
{ | ||
"name": "buble-loader", | ||
"version": "0.4.0", | ||
"version": "0.4.1", | ||
"description": "lightweight ES2015 source loader for Webpack using Buble", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -8,20 +8,21 @@ # buble-loader | ||
## Installation | ||
npm install --save-dev buble-loader buble | ||
```bash | ||
npm install --save-dev buble-loader buble | ||
``` | ||
## Usage | ||
Add this to your `webpack.config.js` | ||
module: { | ||
loaders: [ | ||
{ | ||
test: /.js$/, | ||
loaders: 'buble', | ||
include: path.join(__dirname, 'src'), | ||
query: { | ||
objectAssign: 'Object.assign' | ||
} | ||
} | ||
] | ||
```js | ||
module: { | ||
loaders: [ | ||
{ | ||
test: /.js$/, | ||
loaders: 'buble', | ||
include: path.join(__dirname, 'src'), | ||
query: { | ||
objectAssign: 'Object.assign' | ||
} | ||
} | ||
] | ||
} | ||
``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
64016
5
28