fix: fix message loading by removing vestgial dependency (#6219)

(cherry picked from commit 334956be9b)
This commit is contained in:
Beka Westberg
2022-06-17 16:41:57 +00:00
committed by Maribeth Bottorff
parent 61322294da
commit c0f81c2007

View File

@@ -321,10 +321,7 @@ function packageLocales() {
// Remove references to goog.provide and goog.require.
return gulp.src(`${BUILD_DIR}/msg/js/*.js`)
.pipe(gulp.replace(/goog\.[^\n]+/g, ''))
.pipe(packageUMD(
'Blockly.Msg',
[{name: 'Blockly'}],
'umd-msg.template'))
.pipe(packageUMD('Blockly.Msg', [], 'umd-msg.template'))
.pipe(gulp.dest(`${RELEASE_DIR}/msg`));
};