Use partial ES6

This commit is contained in:
Jake Howard 2016-03-25 12:28:42 +00:00
parent c6c99a0ca1
commit dab51ac52a
2 changed files with 6 additions and 6 deletions

View file

@ -1,11 +1,11 @@
var transformTools = require('browserify-transform-tools');
var transformer = require('./transformer');
const transformTools = require('browserify-transform-tools');
const transformer = require('./transformer');
var OPTIONS = {
const OPTIONS = {
excludeExtensions: ['.json']
};
module.exports = transformTools.makeStringTransform('jsfuckify', OPTIONS, function (content, transformOptions, done) {
var newContent = transformer(content, transformOptions.config);
let newContent = transformer(content, transformOptions.config);
done(null, newContent);
});

View file

@ -1,5 +1,5 @@
var jscrewit = require('jscrewit');
var DEFAULT_OPTIONS = require('./default-options');
const jscrewit = require('jscrewit');
const DEFAULT_OPTIONS = require('./default-options');
module.exports = function transformer(content) {
return jscrewit.encode(content, DEFAULT_OPTIONS);