Skip to content

Commit 6a2f0b0

Browse files
refactor: avoid Object.assign
1 parent 2484275 commit 6a2f0b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ const SyntaxError = require('./Error')
4040
* @return {cb} cb Result
4141
*/
4242
module.exports = function loader (css, map, meta) {
43-
const options = Object.assign({}, loaderUtils.getOptions(this))
43+
const options = loaderUtils.getOptions(this) || {};
4444

4545
validateOptions(require('./options.json'), options, 'PostCSS Loader')
4646

0 commit comments

Comments
 (0)