fix: fix message loading from script tags (#6060)

This commit is contained in:
Maribeth Bottorff
2022-04-04 12:18:44 -07:00
committed by GitHub
parent e36b23cc77
commit 44edbb89c3

View File

@@ -321,8 +321,6 @@ 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(gulp.insert.prepend(`
var Blockly = {};Blockly.Msg={};`))
.pipe(packageUMD('Blockly.Msg', [{
name: 'Blockly',
amd: '../core',