Add missing import to InferenceCalculator.proto
PiperOrigin-RevId: 493649869
This commit is contained in:
parent
d9688b769f
commit
d84eec387b
|
@ -17,6 +17,7 @@ syntax = "proto2";
|
||||||
package mediapipe;
|
package mediapipe;
|
||||||
|
|
||||||
import "mediapipe/framework/calculator.proto";
|
import "mediapipe/framework/calculator.proto";
|
||||||
|
import "mediapipe/framework/calculator_options.proto";
|
||||||
|
|
||||||
option java_package = "com.google.mediapipe.calculator.proto";
|
option java_package = "com.google.mediapipe.calculator.proto";
|
||||||
option java_outer_classname = "InferenceCalculatorProto";
|
option java_outer_classname = "InferenceCalculatorProto";
|
||||||
|
|
|
@ -44,7 +44,6 @@ rollup_bundle(
|
||||||
":audio_lib",
|
":audio_lib",
|
||||||
"@npm//@rollup/plugin-commonjs",
|
"@npm//@rollup/plugin-commonjs",
|
||||||
"@npm//@rollup/plugin-node-resolve",
|
"@npm//@rollup/plugin-node-resolve",
|
||||||
"@npm//@rollup/plugin-replace",
|
|
||||||
"@npm//@rollup/plugin-terser",
|
"@npm//@rollup/plugin-terser",
|
||||||
"@npm//google-protobuf",
|
"@npm//google-protobuf",
|
||||||
],
|
],
|
||||||
|
@ -88,7 +87,6 @@ rollup_bundle(
|
||||||
":text_lib",
|
":text_lib",
|
||||||
"@npm//@rollup/plugin-commonjs",
|
"@npm//@rollup/plugin-commonjs",
|
||||||
"@npm//@rollup/plugin-node-resolve",
|
"@npm//@rollup/plugin-node-resolve",
|
||||||
"@npm//@rollup/plugin-replace",
|
|
||||||
"@npm//@rollup/plugin-terser",
|
"@npm//@rollup/plugin-terser",
|
||||||
"@npm//google-protobuf",
|
"@npm//google-protobuf",
|
||||||
],
|
],
|
||||||
|
@ -132,7 +130,6 @@ rollup_bundle(
|
||||||
":vision_lib",
|
":vision_lib",
|
||||||
"@npm//@rollup/plugin-commonjs",
|
"@npm//@rollup/plugin-commonjs",
|
||||||
"@npm//@rollup/plugin-node-resolve",
|
"@npm//@rollup/plugin-node-resolve",
|
||||||
"@npm//@rollup/plugin-replace",
|
|
||||||
"@npm//@rollup/plugin-terser",
|
"@npm//@rollup/plugin-terser",
|
||||||
"@npm//google-protobuf",
|
"@npm//google-protobuf",
|
||||||
],
|
],
|
||||||
|
|
|
@ -1,15 +1,9 @@
|
||||||
import resolve from '@rollup/plugin-node-resolve';
|
import resolve from '@rollup/plugin-node-resolve';
|
||||||
import commonjs from '@rollup/plugin-commonjs';
|
import commonjs from '@rollup/plugin-commonjs';
|
||||||
import replace from '@rollup/plugin-replace';
|
|
||||||
import terser from '@rollup/plugin-terser';
|
import terser from '@rollup/plugin-terser';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
plugins: [
|
plugins: [
|
||||||
// Workaround for https://github.com/protocolbuffers/protobuf-javascript/issues/151
|
|
||||||
replace({
|
|
||||||
'var calculator_options_pb = {};': 'var calculator_options_pb = {}; var mediapipe_framework_calculator_options_pb = calculator_options_pb;',
|
|
||||||
delimiters: ['', '']
|
|
||||||
}),
|
|
||||||
resolve(),
|
resolve(),
|
||||||
commonjs(),
|
commonjs(),
|
||||||
terser()
|
terser()
|
||||||
|
|
|
@ -7,7 +7,6 @@
|
||||||
"@bazel/typescript": "^5.7.1",
|
"@bazel/typescript": "^5.7.1",
|
||||||
"@rollup/plugin-commonjs": "^23.0.2",
|
"@rollup/plugin-commonjs": "^23.0.2",
|
||||||
"@rollup/plugin-node-resolve": "^15.0.1",
|
"@rollup/plugin-node-resolve": "^15.0.1",
|
||||||
"@rollup/plugin-replace": "^5.0.1",
|
|
||||||
"@rollup/plugin-terser": "^0.1.0",
|
"@rollup/plugin-terser": "^0.1.0",
|
||||||
"@types/google-protobuf": "^3.15.6",
|
"@types/google-protobuf": "^3.15.6",
|
||||||
"@types/offscreencanvas": "^2019.7.0",
|
"@types/offscreencanvas": "^2019.7.0",
|
||||||
|
|
|
@ -148,14 +148,6 @@
|
||||||
is-module "^1.0.0"
|
is-module "^1.0.0"
|
||||||
resolve "^1.22.1"
|
resolve "^1.22.1"
|
||||||
|
|
||||||
"@rollup/plugin-replace@^5.0.1":
|
|
||||||
version "5.0.1"
|
|
||||||
resolved "https://registry.yarnpkg.com/@rollup/plugin-replace/-/plugin-replace-5.0.1.tgz#49a57af3e6df111a9e75dea3f3572741f4c5c83e"
|
|
||||||
integrity sha512-Z3MfsJ4CK17BfGrZgvrcp/l6WXoKb0kokULO+zt/7bmcyayokDaQ2K3eDJcRLCTAlp5FPI4/gz9MHAsosz4Rag==
|
|
||||||
dependencies:
|
|
||||||
"@rollup/pluginutils" "^5.0.1"
|
|
||||||
magic-string "^0.26.4"
|
|
||||||
|
|
||||||
"@rollup/plugin-terser@^0.1.0":
|
"@rollup/plugin-terser@^0.1.0":
|
||||||
version "0.1.0"
|
version "0.1.0"
|
||||||
resolved "https://registry.yarnpkg.com/@rollup/plugin-terser/-/plugin-terser-0.1.0.tgz#7530c0f11667637419d71820461646c418526041"
|
resolved "https://registry.yarnpkg.com/@rollup/plugin-terser/-/plugin-terser-0.1.0.tgz#7530c0f11667637419d71820461646c418526041"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user