Skip to content

Commit

Permalink
Refactor domain sharding and support bundle-manifest requests (#288)
Browse files Browse the repository at this point in the history
  • Loading branch information
benjervis authored Dec 17, 2024
1 parent 5a0e0f9 commit ec9d013
Show file tree
Hide file tree
Showing 31 changed files with 493 additions and 605 deletions.
8 changes: 0 additions & 8 deletions packages/core/integration-tests/test/BundleGraph.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,6 @@ describe('BundleGraph', () => {
type: 'asset',
value: 'bundle-url.js',
},
{
type: 'asset',
value: 'bundle-url-common.js',
},
{
type: 'asset',
value: 'runtime.js',
Expand All @@ -82,10 +78,6 @@ describe('BundleGraph', () => {
type: 'asset',
value: 'bundle-url.js',
},
{
type: 'asset',
value: 'bundle-url-common.js',
},
{
type: 'asset',
value: 'esmodule-helpers.js',
Expand Down
1 change: 0 additions & 1 deletion packages/core/integration-tests/test/bundle-text.js
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,6 @@ describe('bundle-text:', function () {
'index.js',
'esmodule-helpers.js',
'bundle-url.js',
'bundle-url-common.js',
'cacheLoader.js',
'js-loader.js',
],
Expand Down
24 changes: 2 additions & 22 deletions packages/core/integration-tests/test/bundler.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ describe('bundler', function () {
assets: [
'index.js',
'bundle-url.js',
'bundle-url-common.js',
'cacheLoader.js',
'esmodule-helpers.js',
'js-loader.js',
Expand Down Expand Up @@ -161,7 +160,6 @@ describe('bundler', function () {
assets: [
'index.js',
'bundle-url.js',
'bundle-url-common.js',
'cacheLoader.js',
'esmodule-helpers.js',
'js-loader.js',
Expand Down Expand Up @@ -256,7 +254,6 @@ describe('bundler', function () {
assets: [
'index.js',
'bundle-url.js',
'bundle-url-common.js',
'cacheLoader.js',
'esmodule-helpers.js',
'js-loader.js',
Expand Down Expand Up @@ -348,7 +345,6 @@ describe('bundler', function () {
assets: [
'index.js',
'bundle-url.js',
'bundle-url-common.js',
'cacheLoader.js',
'esmodule-helpers.js',
'js-loader.js',
Expand Down Expand Up @@ -467,7 +463,6 @@ describe('bundler', function () {
assets: [
'index.js',
'bundle-url.js',
'bundle-url-common.js',
'cacheLoader.js',
'esmodule-helpers.js',
'js-loader.js',
Expand Down Expand Up @@ -546,7 +541,6 @@ describe('bundler', function () {
assets: [
'index.js',
'bundle-url.js',
'bundle-url-common.js',
'cacheLoader.js',
'esmodule-helpers.js',
'js-loader.js',
Expand Down Expand Up @@ -625,7 +619,6 @@ describe('bundler', function () {
'inline-module.js',
'local.html',
'bundle-url.js',
'bundle-url-common.js',
'cacheLoader.js',
'js-loader.js',
],
Expand Down Expand Up @@ -656,7 +649,6 @@ describe('bundler', function () {
assets: [
'index.js',
'bundle-url.js',
'bundle-url-common.js',
'cacheLoader.js',
'css-loader.js',
'esmodule-helpers.js',
Expand Down Expand Up @@ -709,7 +701,6 @@ describe('bundler', function () {
assets: [
'index.js',
'bundle-url.js',
'bundle-url-common.js',
'cacheLoader.js',
'css-loader.js',
'esmodule-helpers.js',
Expand Down Expand Up @@ -761,7 +752,6 @@ describe('bundler', function () {
assets: [
'index.js',
'bundle-url.js',
'bundle-url-common.js',
'cacheLoader.js',
'css-loader.js',
'esmodule-helpers.js',
Expand Down Expand Up @@ -816,7 +806,6 @@ describe('bundler', function () {
assets: [
'index.js',
'bundle-url.js',
'bundle-url-common.js',
'cacheLoader.js',
'css-loader.js',
'esmodule-helpers.js',
Expand Down Expand Up @@ -870,7 +859,6 @@ describe('bundler', function () {
assets: [
'index.js',
'bundle-url.js',
'bundle-url-common.js',
'cacheLoader.js',
'css-loader.js',
'esmodule-helpers.js',
Expand Down Expand Up @@ -945,7 +933,7 @@ describe('bundler', function () {
],
},
{
assets: ['bundle-manifest.js', 'bundle-url.js', 'bundle-url-common.js'], // manifest bundle
assets: ['bundle-manifest.js', 'bundle-url.js'], // manifest bundle
},
{
assets: [
Expand All @@ -957,7 +945,7 @@ describe('bundler', function () {
],
},
{
assets: ['bundle-manifest.js', 'bundle-url.js', 'bundle-url-common.js'], // manifest bundle
assets: ['bundle-manifest.js', 'bundle-url.js'], // manifest bundle
},
{
assets: ['c.js'],
Expand Down Expand Up @@ -1014,7 +1002,6 @@ describe('bundler', function () {
'a.js',
'b.js',
'bundle-url.js',
'bundle-url-common.js',
'cacheLoader.js',
'js-loader.js',
'esmodule-helpers.js',
Expand Down Expand Up @@ -1086,7 +1073,6 @@ describe('bundler', function () {
assets: [
'index.js',
'bundle-url.js',
'bundle-url-common.js',
'cacheLoader.js',
'esmodule-helpers.js',
'js-loader.js',
Expand Down Expand Up @@ -1429,7 +1415,6 @@ describe('bundler', function () {
assets: [
'bundle-manifest.js',
'bundle-url.js',
'bundle-url-common.js',
'cacheLoader.js',
'css-loader.js',
'esmodule-helpers.js',
Expand Down Expand Up @@ -1597,7 +1582,6 @@ describe('bundler', function () {
assets: [
'bundle-manifest.js',
'bundle-url.js',
'bundle-url-common.js',
'cacheLoader.js',
'css-loader.js',
'esmodule-helpers.js',
Expand Down Expand Up @@ -1899,7 +1883,6 @@ describe('bundler', function () {
assets: [
'bundle-manifest.js',
'bundle-url.js',
'bundle-url-common.js',
'cacheLoader.js',
'index.js',
'js-loader.js',
Expand Down Expand Up @@ -1977,7 +1960,6 @@ describe('bundler', function () {
assets: [
'bundle-manifest.js',
'bundle-url.js',
'bundle-url-common.js',
'cacheLoader.js',
'index.js',
'js-loader.js',
Expand Down Expand Up @@ -2059,7 +2041,6 @@ describe('bundler', function () {
assets: [
'bundle-manifest.js',
'bundle-url.js',
'bundle-url-common.js',
'cacheLoader.js',
'index.js',
'js-loader.js',
Expand Down Expand Up @@ -2348,7 +2329,6 @@ describe('bundler', function () {
'a.js',
'b.js',
'bundle-url.js',
'bundle-url-common.js',
'cacheLoader.js',
'esmodule-helpers.js',
'js-loader.js',
Expand Down
6 changes: 0 additions & 6 deletions packages/core/integration-tests/test/cache.js
Original file line number Diff line number Diff line change
Expand Up @@ -4999,7 +4999,6 @@ describe.v2('cache', function () {
'index.js',
'c.js',
'bundle-url.js',
'bundle-url-common.js',
'cacheLoader.js',
'js-loader.js',
'bundle-manifest.js',
Expand Down Expand Up @@ -5038,7 +5037,6 @@ describe.v2('cache', function () {
'index.js',
'c.js',
'bundle-url.js',
'bundle-url-common.js',
'cacheLoader.js',
'js-loader.js',
'bundle-manifest.js',
Expand Down Expand Up @@ -5115,7 +5113,6 @@ describe.v2('cache', function () {
'index.js',
'c.js',
'bundle-url.js',
'bundle-url-common.js',
'cacheLoader.js',
'js-loader.js',
'bundle-manifest.js',
Expand Down Expand Up @@ -5154,7 +5151,6 @@ describe.v2('cache', function () {
'index.js',
'c.js',
'bundle-url.js',
'bundle-url-common.js',
'cacheLoader.js',
'js-loader.js',
'bundle-manifest.js',
Expand Down Expand Up @@ -5195,7 +5191,6 @@ describe.v2('cache', function () {
'index.js',
'c.js',
'bundle-url.js',
'bundle-url-common.js',
'cacheLoader.js',
'js-loader.js',
'bundle-manifest.js',
Expand Down Expand Up @@ -5228,7 +5223,6 @@ describe.v2('cache', function () {
'index.js',
'c.js',
'bundle-url.js',
'bundle-url-common.js',
'cacheLoader.js',
'js-loader.js',
'bundle-manifest.js',
Expand Down
10 changes: 1 addition & 9 deletions packages/core/integration-tests/test/css.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,13 +79,7 @@ describe('css', () => {
{
name: 'entry.js',
type: 'js',
assets: [
'bundle-url.js',
'bundle-url-common.js',
'cacheLoader.js',
'entry.js',
'js-loader.js',
],
assets: ['bundle-url.js', 'cacheLoader.js', 'entry.js', 'js-loader.js'],
},
{
type: 'js',
Expand All @@ -108,7 +102,6 @@ describe('css', () => {
type: 'js',
assets: [
'bundle-url.js',
'bundle-url-common.js',
'cacheLoader.js',
'css-loader.js',
'entry.js',
Expand All @@ -133,7 +126,6 @@ describe('css', () => {
name: 'index.js',
assets: [
'bundle-url.js',
'bundle-url-common.js',
'cacheLoader.js',
'css-loader.js',
'index.js',
Expand Down
Loading

0 comments on commit ec9d013

Please sign in to comment.