question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Obfuscating transpilade babel ES5

See original GitHub issue

Is it possible? I’m using the gulp task, but all i get is this error:

C:\Users\<MyProjectPath>\src\node_modules\ttf2woff2\jssrc\ttf2woff2.js:1 (function (exports, require, module, __filename, __dirname) { var Module;if(!Module)Module=(typeof Module!=="undefined"?Module:null)||{};var moduleOverrides={};for(var key in Module){if(Module.hasOwnProperty(key)){moduleOverrides[key]=Module[key]}}var ENVIRONMENT_IS_WEB=typeof window==="object";var ENVIRONMENT_IS_WORKER=typeof importScripts==="function";var ENVIRONMENT_IS_NODE=typeof process==="object"&&typeof require==="function"&&!ENVIRONMENT_IS_WEB&&!ENVIRONMENT_IS_WORKER;var ENVIRONMENT_IS_SHELL=!ENVIRONMENT_IS_WEB&&!ENVIRONMENT_IS_NODE&&!ENVIRONMENT_IS_WORKER;if(ENVIRONMENT_IS_NODE){if(!Module["print"])Module["print"]=function print(x){process["stdout"].write(x+"\n")};if(!Module["printErr"])Module["printErr"]=function printErr(x){process["stderr"].write(x+"\n")};var nodeFS=require("fs");var nodePath=require("path");Module["read"]=function read(filename,binary){filename=nodePath["normalize"](filename);var ret=node Error: Line 1: Unexpected token : at ErrorHandler.constructError (C:\Users\<MyProjectPath>\src\node_modules\javascript-obfuscator\node_modules\esprima\dist\esprima.js:3396:16) at ErrorHandler.createError (C:\Users\<MyProjectPath>\src\node_modules\javascript-obfuscator\node_modules\esprima\dist\esprima.js:3414:27) at Parser.unexpectedTokenError (C:\Users\<MyProjectPath>\src\node_modules\javascript-obfuscator\node_modules\esprima\dist\esprima.js:542:39) at Parser.throwUnexpectedToken (C:\Users\<MyProjectPath>\src\node_modules\javascript-obfuscator\node_modules\esprima\dist\esprima.js:552:21) at Parser.consumeSemicolon (C:\Users\<MyProjectPath>\src\node_modules\javascript-obfuscator\node_modules\esprima\dist\esprima.js:845:23) at Parser.parseExpressionStatement (C:\Users\<MyProjectPath>\src\node_modules\javascript-obfuscator\node_modules\esprima\dist\esprima.js:2080:15) at Parser.parseStatement (C:\Users\<MyProjectPath>\src\node_modules\javascript-obfuscator\node_modules\esprima\dist\esprima.js:2495:35) at Parser.parseStatementListItem (C:\Users\<MyProjectPath>\src\node_modules\javascript-obfuscator\node_modules\esprima\dist\esprima.js:1823:31) at Parser.parseBlock (C:\Users\<MyProjectPath>\src\node_modules\javascript-obfuscator\node_modules\esprima\dist\esprima.js:1835:30) at Parser.parseStatement (C:\Users\<MyProjectPath>\src\node_modules\javascript-obfuscator\node_modules\esprima\dist\esprima.js:2500:39) at Parser.parseStatementListItem (C:\Users\<MyProjectPath>\src\node_modules\javascript-obfuscator\node_modules\esprima\dist\esprima.js:1823:31) at Parser.parseProgram (C:\Users\<MyProjectPath>\src\node_modules\javascript-obfuscator\node_modules\esprima\dist\esprima.js:3061:29) at Object.parse (C:\Users\<MyProjectPath>\src\node_modules\javascript-obfuscator\node_modules\esprima\dist\esprima.js:117:24) at JavaScriptObfuscatorInternal.obfuscate (C:\Users\<MyProjectPath>\src\node_modules\javascript-obfuscator\dist\webpack:\src\JavaScriptObfuscatorInternal.ts:61:54) at Function.obfuscate (C:\Users\<MyProjectPath>\src\node_modules\javascript-obfuscator\dist\webpack:\src\JavaScriptObfuscator.ts:30:85) at DestroyableTransform._transform (C:\Users\<MyProjectPath>\src\node_modules\gulp-javascript-obfuscator\index.js:19:46)

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:19 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
I-NOZexcommented, Jul 17, 2017

Yes, sorry didn’t replied earlier

0reactions
lock[bot]commented, Jun 6, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Transpiling EcmaScript6 code to ES5 using Babel
Turning your ES6 code to ES5 JavaScript. First, you need to install Babel: npm install babel --save-dev.
Read more >
Babel isn't transpiling ES6 to ES5 - Stack Overflow
Go to your package.json file. The babel command takes two arguments: the path to your ES6 code and a path to where you...
Read more >
Obfuscate nodejs Code In Less Than 5 Minutes - Do Systems
This article will help Obfuscate Nodejs code in less than 5 minutes. ... sure you convert your ES-6 code base to ES-5 using...
Read more >
How to Convert ES6 into ES5 using Babel | by Sunny Beatteay
The babel command takes two arguments: the path to your ES6 code and a path to where you want your ES5 code to...
Read more >
babelfor.net | Obfuscator and licensing for .NET
Code Obfuscation and Licensing for .NET Framework, .NET Core , and . ... NET Core, Babel Obfuscator runs as dotnet global tool on...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found