chore: Remove core/requires.js (#5718)

* chore: Remove requires that duplicate those in blockly.js

* refactor: Remove core/requires.js, make blockly.js be entry point

It sort of makes sense, doesn't it?

The only remaining require not duplicated in `blockly.js` was that for
`Blockly.themes.Classic`, but it is already required by
`Blockly.themes` (itself required by `Blockly`).
This commit is contained in:
Christopher Allen
2021-12-06 16:46:14 +00:00
committed by GitHub
parent 5a70f8a337
commit 10cfc11809
5 changed files with 14 additions and 96 deletions

View File

@@ -98,7 +98,7 @@ const NAMESPACE_OBJECT = '$';
const chunks = [
{
name: 'blockly',
entry: 'core/requires.js',
entry: 'core/blockly.js',
exports: 'Blockly',
importAs: 'Blockly',
factoryPreamble: `const ${NAMESPACE_OBJECT}={};`,
@@ -385,10 +385,10 @@ function getChunkOptions() {
//
// {
// chunk: [
// 'requires:258',
// 'all:10:requires',
// 'all1:11:requires',
// 'all2:11:requires',
// 'blockly:258',
// 'all:10:blockly',
// 'all1:11:blockly',
// 'all2:11:blockly',
// /* ... remaining handful of chunks */
// ],
// js: [