Skip to content

Commit

Permalink
Replaces legacy extend-shallow with Object.assign
Browse files Browse the repository at this point in the history
  • Loading branch information
webketje committed Jul 18, 2023
1 parent 90f7fb2 commit 77bf0d1
Show file tree
Hide file tree
Showing 3 changed files with 1,216 additions and 126 deletions.
3 changes: 1 addition & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

const path = require('path')
const nunjucks = require('nunjucks')
const extend = require('extend-shallow')

function nunjucksEnv(options) {
// Find the path for which the environment will be created.
Expand Down Expand Up @@ -32,7 +31,7 @@ const transformer = {

transformer.compile = function (source, options) {
// Prepare the options.
options = extend({watch: false}, options)
options = Object.assign({watch: false}, options)

const env = nunjucksEnv(options)

Expand Down
Loading

0 comments on commit 77bf0d1

Please sign in to comment.