@bavary/webpack-loader
Advanced tools
Comparing version
@@ -17,3 +17,3 @@ "use strict"; | ||
function _default(content) { | ||
const options = (0, _loaderUtils.getOptions)(this); // Validate config object | ||
const options = (0, _loaderUtils.getOptions)(this) || {}; // Validate config object | ||
@@ -28,3 +28,4 @@ (0, _schemaUtils.default)(_options.default, options, { | ||
...coreOptions | ||
} = options; | ||
} = options; // TODO: Wtf is wrong here | ||
return ` | ||
@@ -31,0 +32,0 @@ const {compile} = require('@bavary/core'); |
{ | ||
"name": "@bavary/webpack-loader", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Webpack Loader for bavary declaration files", | ||
@@ -5,0 +5,0 @@ "author": "Simon Reinisch <trash@reinisch.io>", |
@@ -18,3 +18,3 @@ <h3 align="center"> | ||
<img alt="Current version" | ||
src="https://img.shields.io/github/tag/Simonwep/bavary-webpack-loader.svg?color=21068E&label=version&style=flat-square"> | ||
src="https://img.shields.io/github/tag/Simonwep/bavary-webpack-loader.svg?color=387EFF&label=version&style=flat-square"> | ||
<a href="https://github.com/sponsors/Simonwep"><img | ||
@@ -68,2 +68,5 @@ alt="Support me" | ||
// Inject functions from @bavary/lib. Be sure to install @bavary/lib to use them | ||
functions: ['count', ...], | ||
...bavaryOptions | ||
@@ -70,0 +73,0 @@ } |
@@ -6,3 +6,3 @@ import validateOptions from 'schema-utils'; | ||
export default function (content) { | ||
const options = getOptions(this); | ||
const options = getOptions(this) || {}; | ||
@@ -19,3 +19,3 @@ // Validate config object | ||
...coreOptions | ||
} = options; | ||
} = options; // TODO: Wtf is wrong here | ||
@@ -22,0 +22,0 @@ return ` |
9667
1.94%96
3.23%