Use partial ES6
This commit is contained in:
parent
c6c99a0ca1
commit
dab51ac52a
2 changed files with 6 additions and 6 deletions
|
@ -1,11 +1,11 @@
|
||||||
var transformTools = require('browserify-transform-tools');
|
const transformTools = require('browserify-transform-tools');
|
||||||
var transformer = require('./transformer');
|
const transformer = require('./transformer');
|
||||||
|
|
||||||
var OPTIONS = {
|
const OPTIONS = {
|
||||||
excludeExtensions: ['.json']
|
excludeExtensions: ['.json']
|
||||||
};
|
};
|
||||||
|
|
||||||
module.exports = transformTools.makeStringTransform('jsfuckify', OPTIONS, function (content, transformOptions, done) {
|
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);
|
done(null, newContent);
|
||||||
});
|
});
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
var jscrewit = require('jscrewit');
|
const jscrewit = require('jscrewit');
|
||||||
var DEFAULT_OPTIONS = require('./default-options');
|
const DEFAULT_OPTIONS = require('./default-options');
|
||||||
|
|
||||||
module.exports = function transformer(content) {
|
module.exports = function transformer(content) {
|
||||||
return jscrewit.encode(content, DEFAULT_OPTIONS);
|
return jscrewit.encode(content, DEFAULT_OPTIONS);
|
||||||
|
|
Reference in a new issue