mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-08 06:05:17 +00:00
deprecate the two options which have no effect of their own (#8831)
This commit is contained in:
@@ -118,7 +118,6 @@ class TsGenerator : public BaseGenerator {
|
||||
if (!parser_.opts.ts_omit_entrypoint) {
|
||||
generateEntry();
|
||||
}
|
||||
if (!generateBundle()) return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -325,29 +324,6 @@ class TsGenerator : public BaseGenerator {
|
||||
}
|
||||
}
|
||||
|
||||
bool generateBundle() {
|
||||
if (parser_.opts.ts_flat_files) {
|
||||
std::string inputpath;
|
||||
std::string symbolic_name = file_name_;
|
||||
inputpath = path_ + file_name_ + ".ts";
|
||||
std::string bundlepath =
|
||||
GeneratedFileName(path_, file_name_, parser_.opts);
|
||||
bundlepath = bundlepath.substr(0, bundlepath.size() - 3) + ".js";
|
||||
std::string cmd = "esbuild";
|
||||
cmd += " ";
|
||||
cmd += inputpath;
|
||||
// cmd += " --minify";
|
||||
cmd += " --format=cjs --bundle --outfile=";
|
||||
cmd += bundlepath;
|
||||
cmd += " --external:flatbuffers";
|
||||
std::cout << "Entry point " << inputpath << " generated." << std::endl;
|
||||
std::cout << "A single file bundle can be created using fx. esbuild with:"
|
||||
<< std::endl;
|
||||
std::cout << "> " << cmd << std::endl;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
// Generate a documentation comment, if available.
|
||||
static void GenDocComment(const std::vector<std::string>& dc,
|
||||
std::string* code_ptr,
|
||||
|
||||
Reference in New Issue
Block a user