Skip to content

Commit 49bcb6b

Browse files
authored
Merge pull request #946 from kvz/fix/locutus-deep-imports
2 parents 817ee11 + 0b2b058 commit 49bcb6b

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

src/twig.lib.js

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,15 @@
77
//
88

99
module.exports = function (Twig) {
10-
const { sprintf, vsprintf, strip_tags } = require('locutus/php/strings/index');
11-
const { round, min, max } = require('locutus/php/math/index');
12-
const { strtotime, date } = require('locutus/php/datetime/index');
13-
const { boolval } = require('locutus/php/var/index');
10+
const { sprintf } = require('locutus/php/strings/sprintf');
11+
const { vsprintf } = require('locutus/php/strings/vsprintf');
12+
const { strip_tags } = require('locutus/php/strings/strip_tags');
13+
const { round } = require('locutus/php/math/round');
14+
const { min } = require('locutus/php/math/min');
15+
const { max } = require('locutus/php/math/max');
16+
const { strtotime } = require('locutus/php/datetime/strtotime');
17+
const { date } = require('locutus/php/datetime/date');
18+
const { boolval } = require('locutus/php/var/boolval');
1419

1520
// Namespace for libraries
1621
Twig.lib = { };

0 commit comments

Comments
 (0)