{"id":25953,"library":"modpe-compiler","title":"ModPE Compiler","description":"A build tool that integrates linting (ESLint), transpilation (Babel), and minification (UglifyJS) for ModPE scripts used in the BlockLauncher Minecraft modding platform. Version 0.1.0 is the current stable release, likely with low release cadence. It differs from general transpilers by targeting the ModPE runtime environment specifically, providing a single-command pipeline for legacy ModPE JavaScript development.","status":"active","version":"0.1.0","language":"javascript","source_language":"en","source_url":"https://github.com/Astro36/ModPECompiler","tags":["javascript","modpe","transpiler"],"install":[{"cmd":"npm install modpe-compiler","lang":"bash","label":"npm"},{"cmd":"yarn add modpe-compiler","lang":"bash","label":"yarn"},{"cmd":"pnpm add modpe-compiler","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"The package uses CommonJS; ES import syntax may not work depending on bundler.","wrong":"import ModPECompiler from 'modpe-compiler';","symbol":"ModPECompiler","correct":"const ModPECompiler = require('modpe-compiler');"},{"note":"Constructor exported directly, not as a named property.","wrong":"let compiler = new modpeCompiler.ModPECompiler('your_script.js');","symbol":"new ModPECompiler(filePath)","correct":"let compiler = new ModPECompiler('your_script.js');"},{"note":"run() is an instance method, not static.","wrong":"ModPECompiler.run('your_script.js');","symbol":"compiler.run()","correct":"compiler.run();"}],"quickstart":{"code":"const ModPECompiler = require('modpe-compiler');\nlet compiler = new ModPECompiler('./my_script.js');\ntry {\n  compiler.run();\n  compiler.saveAsFile();\n  console.log('Compiled successfully');\n} catch (err) {\n  console.error('Compilation failed:', err);\n}","lang":"javascript","description":"Shows how to instantiate ModPECompiler, run lint/transpile/minify pipeline, and save output."},"warnings":[{"fix":"Use const ModPECompiler = require('modpe-compiler');","message":"ESM import syntax is not supported natively; only CommonJS require works.","severity":"gotcha","affected_versions":"<=0.1.0"},{"fix":"Check file path exists before calling constructor.","message":"Input file must be valid JavaScript; no error reporting for missing files beyond generic message.","severity":"gotcha","affected_versions":"<=0.1.0"},{"fix":"Use alternative tools that are actively maintained.","message":"ESLint, Babel, and UglifyJS are outdated dependencies; may have security vulnerabilities.","severity":"deprecated","affected_versions":"<=0.1.0"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Install manually: npm install uglify-js","cause":"Missing optional dependency; UglifyJS is expected but not a direct dependency.","error":"Error: Cannot find module 'uglify-js'"},{"fix":"Instantiate first: new ModPECompiler().run()","cause":"Using default import syntax with ES import; ModPECompiler is the default, but run is not a static method.","error":"TypeError: compiler.run is not a function"},{"fix":"Verify the file path passed to the constructor.","cause":"File path provided does not exist.","error":"Error: ENOENT: no such file or directory, open '...'"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}