Revert "fix: fix message loading from script tags (#6060)" (#6182)

This reverts commit 44edbb89c3.
This commit is contained in:
Beka Westberg
2022-06-06 08:59:09 -07:00
committed by GitHub
parent 37dfabafb3
commit b1750b8545

View File

@@ -321,6 +321,8 @@ 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',