Skip to content

Commit

Permalink
Updated FB import (google#6019)
Browse files Browse the repository at this point in the history
Previous FB import was based on the original early TS implementation
and did not take into accout NPM. There doesn't seem to be a use
for current implemenentation anymore, while NPM compatibility is
needed.

Co-authored-by: Kamil Rojewski <[email protected]>
  • Loading branch information
krojew and krojew authored Jul 2, 2020
1 parent b69fc8c commit 36fbe6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/idl_gen_js_ts.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ class JsTsGenerator : public BaseGenerator {
++it) {
if (lang_.language == IDLOptions::kTs) {
if (it->find('.') == std::string::npos) {
code += "import { flatbuffers } from \"./flatbuffers\"\n";
code += "import * as flatbuffers from 'flatbuffers';\n";
break;
}
} else {
Expand Down

0 comments on commit 36fbe6f

Please sign in to comment.