diff --git a/packages/core/integration-tests/test/BundleGraph.js b/packages/core/integration-tests/test/BundleGraph.js index f3c62e95c..7c1a1d19e 100644 --- a/packages/core/integration-tests/test/BundleGraph.js +++ b/packages/core/integration-tests/test/BundleGraph.js @@ -64,11 +64,11 @@ describe('BundleGraph', () => { }, { type: 'asset', - value: 'bundle-url.ts', + value: 'bundle-url.js', }, { type: 'asset', - value: 'bundle-url-common.ts', + value: 'bundle-url-common.js', }, { type: 'asset', @@ -80,11 +80,11 @@ describe('BundleGraph', () => { }, { type: 'asset', - value: 'bundle-url.ts', + value: 'bundle-url.js', }, { type: 'asset', - value: 'bundle-url-common.ts', + value: 'bundle-url-common.js', }, { type: 'asset', diff --git a/packages/core/integration-tests/test/bundle-text.js b/packages/core/integration-tests/test/bundle-text.js index 510c4f121..c0e504d78 100644 --- a/packages/core/integration-tests/test/bundle-text.js +++ b/packages/core/integration-tests/test/bundle-text.js @@ -244,8 +244,8 @@ describe('bundle-text:', function () { : [ 'index.js', 'esmodule-helpers.js', - 'bundle-url.ts', - 'bundle-url-common.ts', + 'bundle-url.js', + 'bundle-url-common.js', 'cacheLoader.js', 'js-loader.js', ], diff --git a/packages/core/integration-tests/test/bundler.js b/packages/core/integration-tests/test/bundler.js index bc3099a11..905d0c500 100644 --- a/packages/core/integration-tests/test/bundler.js +++ b/packages/core/integration-tests/test/bundler.js @@ -70,8 +70,8 @@ describe('bundler', function () { name: 'index.js', assets: [ 'index.js', - 'bundle-url.ts', - 'bundle-url-common.ts', + 'bundle-url.js', + 'bundle-url-common.js', 'cacheLoader.js', 'esmodule-helpers.js', 'js-loader.js', @@ -160,8 +160,8 @@ describe('bundler', function () { name: 'index.js', assets: [ 'index.js', - 'bundle-url.ts', - 'bundle-url-common.ts', + 'bundle-url.js', + 'bundle-url-common.js', 'cacheLoader.js', 'esmodule-helpers.js', 'js-loader.js', @@ -255,8 +255,8 @@ describe('bundler', function () { name: 'index.js', assets: [ 'index.js', - 'bundle-url.ts', - 'bundle-url-common.ts', + 'bundle-url.js', + 'bundle-url-common.js', 'cacheLoader.js', 'esmodule-helpers.js', 'js-loader.js', @@ -347,8 +347,8 @@ describe('bundler', function () { name: 'index.js', assets: [ 'index.js', - 'bundle-url.ts', - 'bundle-url-common.ts', + 'bundle-url.js', + 'bundle-url-common.js', 'cacheLoader.js', 'esmodule-helpers.js', 'js-loader.js', @@ -466,8 +466,8 @@ describe('bundler', function () { name: 'index.js', assets: [ 'index.js', - 'bundle-url.ts', - 'bundle-url-common.ts', + 'bundle-url.js', + 'bundle-url-common.js', 'cacheLoader.js', 'esmodule-helpers.js', 'js-loader.js', @@ -545,8 +545,8 @@ describe('bundler', function () { name: 'index.js', assets: [ 'index.js', - 'bundle-url.ts', - 'bundle-url-common.ts', + 'bundle-url.js', + 'bundle-url-common.js', 'cacheLoader.js', 'esmodule-helpers.js', 'js-loader.js', @@ -624,8 +624,8 @@ describe('bundler', function () { assets: [ 'inline-module.js', 'local.html', - 'bundle-url.ts', - 'bundle-url-common.ts', + 'bundle-url.js', + 'bundle-url-common.js', 'cacheLoader.js', 'js-loader.js', ], @@ -655,8 +655,8 @@ describe('bundler', function () { name: 'index.js', assets: [ 'index.js', - 'bundle-url.ts', - 'bundle-url-common.ts', + 'bundle-url.js', + 'bundle-url-common.js', 'cacheLoader.js', 'css-loader.js', 'esmodule-helpers.js', @@ -708,8 +708,8 @@ describe('bundler', function () { name: 'index.js', assets: [ 'index.js', - 'bundle-url.ts', - 'bundle-url-common.ts', + 'bundle-url.js', + 'bundle-url-common.js', 'cacheLoader.js', 'css-loader.js', 'esmodule-helpers.js', @@ -760,8 +760,8 @@ describe('bundler', function () { name: 'index.js', assets: [ 'index.js', - 'bundle-url.ts', - 'bundle-url-common.ts', + 'bundle-url.js', + 'bundle-url-common.js', 'cacheLoader.js', 'css-loader.js', 'esmodule-helpers.js', @@ -815,8 +815,8 @@ describe('bundler', function () { name: 'index.js', assets: [ 'index.js', - 'bundle-url.ts', - 'bundle-url-common.ts', + 'bundle-url.js', + 'bundle-url-common.js', 'cacheLoader.js', 'css-loader.js', 'esmodule-helpers.js', @@ -869,8 +869,8 @@ describe('bundler', function () { name: 'index.js', assets: [ 'index.js', - 'bundle-url.ts', - 'bundle-url-common.ts', + 'bundle-url.js', + 'bundle-url-common.js', 'cacheLoader.js', 'css-loader.js', 'esmodule-helpers.js', @@ -945,7 +945,7 @@ describe('bundler', function () { ], }, { - assets: ['bundle-manifest.js', 'bundle-url.ts', 'bundle-url-common.ts'], // manifest bundle + assets: ['bundle-manifest.js', 'bundle-url.js', 'bundle-url-common.js'], // manifest bundle }, { assets: [ @@ -957,7 +957,7 @@ describe('bundler', function () { ], }, { - assets: ['bundle-manifest.js', 'bundle-url.ts', 'bundle-url-common.ts'], // manifest bundle + assets: ['bundle-manifest.js', 'bundle-url.js', 'bundle-url-common.js'], // manifest bundle }, { assets: ['c.js'], @@ -1013,8 +1013,8 @@ describe('bundler', function () { assets: [ 'a.js', 'b.js', - 'bundle-url.ts', - 'bundle-url-common.ts', + 'bundle-url.js', + 'bundle-url-common.js', 'cacheLoader.js', 'js-loader.js', 'esmodule-helpers.js', @@ -1085,8 +1085,8 @@ describe('bundler', function () { name: 'index.js', assets: [ 'index.js', - 'bundle-url.ts', - 'bundle-url-common.ts', + 'bundle-url.js', + 'bundle-url-common.js', 'cacheLoader.js', 'esmodule-helpers.js', 'js-loader.js', @@ -1428,8 +1428,8 @@ describe('bundler', function () { { assets: [ 'bundle-manifest.js', - 'bundle-url.ts', - 'bundle-url-common.ts', + 'bundle-url.js', + 'bundle-url-common.js', 'cacheLoader.js', 'css-loader.js', 'esmodule-helpers.js', @@ -1596,8 +1596,8 @@ describe('bundler', function () { { assets: [ 'bundle-manifest.js', - 'bundle-url.ts', - 'bundle-url-common.ts', + 'bundle-url.js', + 'bundle-url-common.js', 'cacheLoader.js', 'css-loader.js', 'esmodule-helpers.js', @@ -1898,8 +1898,8 @@ describe('bundler', function () { { assets: [ 'bundle-manifest.js', - 'bundle-url.ts', - 'bundle-url-common.ts', + 'bundle-url.js', + 'bundle-url-common.js', 'cacheLoader.js', 'index.js', 'js-loader.js', @@ -1976,8 +1976,8 @@ describe('bundler', function () { { assets: [ 'bundle-manifest.js', - 'bundle-url.ts', - 'bundle-url-common.ts', + 'bundle-url.js', + 'bundle-url-common.js', 'cacheLoader.js', 'index.js', 'js-loader.js', @@ -2058,8 +2058,8 @@ describe('bundler', function () { { assets: [ 'bundle-manifest.js', - 'bundle-url.ts', - 'bundle-url-common.ts', + 'bundle-url.js', + 'bundle-url-common.js', 'cacheLoader.js', 'index.js', 'js-loader.js', @@ -2347,8 +2347,8 @@ describe('bundler', function () { assets: [ 'a.js', 'b.js', - 'bundle-url.ts', - 'bundle-url-common.ts', + 'bundle-url.js', + 'bundle-url-common.js', 'cacheLoader.js', 'esmodule-helpers.js', 'js-loader.js', diff --git a/packages/core/integration-tests/test/cache.js b/packages/core/integration-tests/test/cache.js index 29f7b555f..5de047e92 100644 --- a/packages/core/integration-tests/test/cache.js +++ b/packages/core/integration-tests/test/cache.js @@ -4998,8 +4998,8 @@ describe.v2('cache', function () { assets: [ 'index.js', 'c.js', - 'bundle-url.ts', - 'bundle-url-common.ts', + 'bundle-url.js', + 'bundle-url-common.js', 'cacheLoader.js', 'js-loader.js', 'bundle-manifest.js', @@ -5037,8 +5037,8 @@ describe.v2('cache', function () { assets: [ 'index.js', 'c.js', - 'bundle-url.ts', - 'bundle-url-common.ts', + 'bundle-url.js', + 'bundle-url-common.js', 'cacheLoader.js', 'js-loader.js', 'bundle-manifest.js', @@ -5114,8 +5114,8 @@ describe.v2('cache', function () { assets: [ 'index.js', 'c.js', - 'bundle-url.ts', - 'bundle-url-common.ts', + 'bundle-url.js', + 'bundle-url-common.js', 'cacheLoader.js', 'js-loader.js', 'bundle-manifest.js', @@ -5153,8 +5153,8 @@ describe.v2('cache', function () { assets: [ 'index.js', 'c.js', - 'bundle-url.ts', - 'bundle-url-common.ts', + 'bundle-url.js', + 'bundle-url-common.js', 'cacheLoader.js', 'js-loader.js', 'bundle-manifest.js', @@ -5194,8 +5194,8 @@ describe.v2('cache', function () { assets: [ 'index.js', 'c.js', - 'bundle-url.ts', - 'bundle-url-common.ts', + 'bundle-url.js', + 'bundle-url-common.js', 'cacheLoader.js', 'js-loader.js', 'bundle-manifest.js', @@ -5227,8 +5227,8 @@ describe.v2('cache', function () { assets: [ 'index.js', 'c.js', - 'bundle-url.ts', - 'bundle-url-common.ts', + 'bundle-url.js', + 'bundle-url-common.js', 'cacheLoader.js', 'js-loader.js', 'bundle-manifest.js', diff --git a/packages/core/integration-tests/test/css.js b/packages/core/integration-tests/test/css.js index 1df8f6ccf..7b7df559b 100644 --- a/packages/core/integration-tests/test/css.js +++ b/packages/core/integration-tests/test/css.js @@ -80,8 +80,8 @@ describe('css', () => { name: 'entry.js', type: 'js', assets: [ - 'bundle-url.ts', - 'bundle-url-common.ts', + 'bundle-url.js', + 'bundle-url-common.js', 'cacheLoader.js', 'entry.js', 'js-loader.js', @@ -107,8 +107,8 @@ describe('css', () => { name: 'entry.js', type: 'js', assets: [ - 'bundle-url.ts', - 'bundle-url-common.ts', + 'bundle-url.js', + 'bundle-url-common.js', 'cacheLoader.js', 'css-loader.js', 'entry.js', @@ -132,8 +132,8 @@ describe('css', () => { { name: 'index.js', assets: [ - 'bundle-url.ts', - 'bundle-url-common.ts', + 'bundle-url.js', + 'bundle-url-common.js', 'cacheLoader.js', 'css-loader.js', 'index.js', diff --git a/packages/core/integration-tests/test/glob.js b/packages/core/integration-tests/test/glob.js index a41ad0a37..81f15f3b1 100644 --- a/packages/core/integration-tests/test/glob.js +++ b/packages/core/integration-tests/test/glob.js @@ -82,7 +82,7 @@ describe('glob', function () { assertBundles(b, [ { name: 'index.js', - assets: ['index.js', '*.js', 'bundle-url.ts', 'bundle-url-common.ts'], + assets: ['index.js', '*.js', 'bundle-url.js', 'bundle-url-common.js'], }, { type: 'txt', @@ -116,8 +116,8 @@ describe('glob', function () { assets: [ 'index.js', '*.js', - 'bundle-url.ts', - 'bundle-url-common.ts', + 'bundle-url.js', + 'bundle-url-common.js', 'cacheLoader.js', 'js-loader.js', ], @@ -240,8 +240,8 @@ describe('glob', function () { assets: [ '*.js', '*.js', - 'bundle-url.ts', - 'bundle-url-common.ts', + 'bundle-url.js', + 'bundle-url-common.js', 'cacheLoader.js', 'index.js', 'js-loader.js', diff --git a/packages/core/integration-tests/test/html.js b/packages/core/integration-tests/test/html.js index d629e2d8b..b9aa70f56 100644 --- a/packages/core/integration-tests/test/html.js +++ b/packages/core/integration-tests/test/html.js @@ -484,8 +484,8 @@ describe('html', function () { type: 'js', assets: [ 'index.css', - 'bundle-url.ts', - 'bundle-url-common.ts', + 'bundle-url.js', + 'bundle-url-common.js', 'css-loader.js', 'hmr-runtime.js', ], @@ -1875,8 +1875,8 @@ describe('html', function () { type: 'js', assets: [ 'bundle-manifest.js', - 'bundle-url.ts', - 'bundle-url-common.ts', + 'bundle-url.js', + 'bundle-url-common.js', 'cacheLoader.js', 'index.js', 'index.js', @@ -2209,8 +2209,8 @@ describe('html', function () { type: 'js', assets: [ 'bundle-manifest.js', - 'bundle-url.ts', - 'bundle-url-common.ts', + 'bundle-url.js', + 'bundle-url-common.js', 'cacheLoader.js', 'index.js', 'js-loader.js', @@ -2233,8 +2233,8 @@ describe('html', function () { type: 'js', assets: [ 'bundle-manifest.js', - 'bundle-url.ts', - 'bundle-url-common.ts', + 'bundle-url.js', + 'bundle-url-common.js', 'cacheLoader.js', 'index.js', 'js-loader.js', @@ -2305,8 +2305,8 @@ describe('html', function () { assets: [ 'a.js', 'bundle-manifest.js', - 'bundle-url.ts', - 'bundle-url-common.ts', + 'bundle-url.js', + 'bundle-url-common.js', 'cacheLoader.js', 'js-loader.js', ], @@ -2315,8 +2315,8 @@ describe('html', function () { assets: [ 'b.js', 'bundle-manifest.js', - 'bundle-url.ts', - 'bundle-url-common.ts', + 'bundle-url.js', + 'bundle-url-common.js', 'cacheLoader.js', 'js-loader.js', ], @@ -2586,8 +2586,8 @@ describe('html', function () { type: 'js', assets: [ 'a.js', - 'bundle-url.ts', - 'bundle-url-common.ts', + 'bundle-url.js', + 'bundle-url-common.js', 'esmodule-helpers.js', 'get-worker-url.js', 'index.js', diff --git a/packages/core/integration-tests/test/javascript.js b/packages/core/integration-tests/test/javascript.js index c670dc8d3..b028be9c5 100644 --- a/packages/core/integration-tests/test/javascript.js +++ b/packages/core/integration-tests/test/javascript.js @@ -424,8 +424,8 @@ describe('javascript', function () { name: 'index.js', assets: [ 'index.js', - 'bundle-url.ts', - 'bundle-url-common.ts', + 'bundle-url.js', + 'bundle-url-common.js', 'cacheLoader.js', 'js-loader.js', ], @@ -669,8 +669,8 @@ describe('javascript', function () { assets: [ 'index.js', 'bar.js', - 'bundle-url.ts', - 'bundle-url-common.ts', + 'bundle-url.js', + 'bundle-url-common.js', 'cacheLoader.js', 'esmodule-helpers.js', 'foo.js', @@ -710,8 +710,8 @@ describe('javascript', function () { name: 'index.js', assets: [ 'index.js', - 'bundle-url.ts', - 'bundle-url-common.ts', + 'bundle-url.js', + 'bundle-url-common.js', 'cacheLoader.js', 'js-loader.js', ], @@ -739,8 +739,8 @@ describe('javascript', function () { name: 'index.js', assets: [ 'index.js', - 'bundle-url.ts', - 'bundle-url-common.ts', + 'bundle-url.js', + 'bundle-url-common.js', 'cacheLoader.js', 'esmodule-helpers.js', 'js-loader.js', @@ -772,8 +772,8 @@ describe('javascript', function () { name: 'index.js', assets: [ 'index.js', - 'bundle-url.ts', - 'bundle-url-common.ts', + 'bundle-url.js', + 'bundle-url-common.js', 'cacheLoader.js', 'js-loader.js', ], @@ -808,8 +808,8 @@ describe('javascript', function () { assets: [ 'index.js', 'c.js', - 'bundle-url.ts', - 'bundle-url-common.ts', + 'bundle-url.js', + 'bundle-url-common.js', 'cacheLoader.js', 'js-loader.js', 'bundle-manifest.js', @@ -836,8 +836,8 @@ describe('javascript', function () { assets: [ 'index.js', 'common.js', - 'bundle-url.ts', - 'bundle-url-common.ts', + 'bundle-url.js', + 'bundle-url-common.js', 'cacheLoader.js', 'js-loader.js', ], @@ -866,8 +866,8 @@ describe('javascript', function () { name: 'b.js', assets: [ 'b.js', - 'bundle-url.ts', - 'bundle-url-common.ts', + 'bundle-url.js', + 'bundle-url-common.js', 'cacheLoader.js', 'js-loader.js', ], @@ -876,8 +876,8 @@ describe('javascript', function () { name: 'a.js', assets: [ 'a.js', - 'bundle-url.ts', - 'bundle-url-common.ts', + 'bundle-url.js', + 'bundle-url-common.js', 'common.js', 'cacheLoader.js', 'esmodule-helpers.js', @@ -900,8 +900,8 @@ describe('javascript', function () { name: 'index.js', assets: [ 'index.js', - 'bundle-url.ts', - 'bundle-url-common.ts', + 'bundle-url.js', + 'bundle-url-common.js', 'cacheLoader.js', 'js-loader.js', 'esmodule-helpers.js', @@ -935,8 +935,8 @@ describe('javascript', function () { name: 'index.js', assets: [ 'index.js', - 'bundle-url.ts', - 'bundle-url-common.ts', + 'bundle-url.js', + 'bundle-url-common.js', 'cacheLoader.js', 'esmodule-helpers.js', 'js-loader.js', @@ -965,7 +965,7 @@ describe('javascript', function () { assertBundles(b, [ { name: 'index.js', - assets: ['index.js', 'bundle-url.ts', 'bundle-url-common.ts'], + assets: ['index.js', 'bundle-url.js', 'bundle-url-common.js'], }, { type: 'txt', @@ -997,8 +997,8 @@ describe('javascript', function () { name: 'index.js', assets: [ 'index.js', - 'bundle-url.ts', - 'bundle-url-common.ts', + 'bundle-url.js', + 'bundle-url-common.js', 'esmodule-helpers.js', ], }, @@ -1035,8 +1035,8 @@ describe('javascript', function () { name: 'cjs.js', assets: [ 'cjs.js', - 'bundle-url.ts', - 'bundle-url-common.ts', + 'bundle-url.js', + 'bundle-url-common.js', 'esmodule-helpers.js', ], }, @@ -1148,7 +1148,7 @@ describe('javascript', function () { assertBundles(b, [ { name: 'index.js', - assets: ['index.js', 'bundle-url.ts', 'bundle-url-common.ts'], + assets: ['index.js', 'bundle-url.js', 'bundle-url-common.js'], }, { type: 'txt', @@ -2713,8 +2713,8 @@ describe('javascript', function () { name: 'index.js', assets: [ 'index.js', - 'bundle-url.ts', - 'bundle-url-common.ts', + 'bundle-url.js', + 'bundle-url-common.js', 'cacheLoader.js', 'esmodule-helpers.js', 'js-loader.js', @@ -2799,8 +2799,8 @@ describe('javascript', function () { name: 'ts.js', assets: [ 'ts.js', - 'bundle-url.ts', - 'bundle-url-common.ts', + 'bundle-url.js', + 'bundle-url-common.js', 'cacheLoader.js', 'js-loader.js', ], @@ -2823,8 +2823,8 @@ describe('javascript', function () { name: 'ts-interop.js', assets: [ 'ts-interop.js', - 'bundle-url.ts', - 'bundle-url-common.ts', + 'bundle-url.js', + 'bundle-url-common.js', 'cacheLoader.js', 'js-loader.js', ], @@ -2853,8 +2853,8 @@ describe('javascript', function () { name: 'ts-interop-arrow.js', assets: [ 'ts-interop-arrow.js', - 'bundle-url.ts', - 'bundle-url-common.ts', + 'bundle-url.js', + 'bundle-url-common.js', 'cacheLoader.js', 'js-loader.js', ], @@ -2881,8 +2881,8 @@ describe('javascript', function () { name: 'rollup.js', assets: [ 'rollup.js', - 'bundle-url.ts', - 'bundle-url-common.ts', + 'bundle-url.js', + 'bundle-url-common.js', 'cacheLoader.js', 'js-loader.js', ], @@ -2920,8 +2920,8 @@ describe('javascript', function () { name: 'resolve-chain.js', assets: [ 'resolve-chain.js', - 'bundle-url.ts', - 'bundle-url-common.ts', + 'bundle-url.js', + 'bundle-url-common.js', 'cacheLoader.js', 'js-loader.js', ], @@ -2944,8 +2944,8 @@ describe('javascript', function () { name: 'atlaspack.js', assets: [ 'atlaspack.js', - 'bundle-url.ts', - 'bundle-url-common.ts', + 'bundle-url.js', + 'bundle-url-common.js', 'cacheLoader.js', 'js-loader.js', ], @@ -3102,8 +3102,8 @@ describe('javascript', function () { name: 'entry2.js', assets: [ 'bundle-manifest.js', - 'bundle-url.ts', - 'bundle-url-common.ts', + 'bundle-url.js', + 'bundle-url-common.js', 'cacheLoader.js', 'child.js', 'entry2.js', @@ -3124,8 +3124,8 @@ describe('javascript', function () { name: 'same-ancestry.js', assets: [ 'bundle-manifest.js', - 'bundle-url.ts', - 'bundle-url-common.ts', + 'bundle-url.js', + 'bundle-url-common.js', 'cacheLoader.js', 'dep.js', 'js-loader.js', @@ -3172,8 +3172,8 @@ describe('javascript', function () { name: 'get-dep.js', assets: [ 'bundle-manifest.js', - 'bundle-url.ts', - 'bundle-url-common.ts', + 'bundle-url.js', + 'bundle-url-common.js', 'cacheLoader.js', 'get-dep.js', 'js-loader.js', @@ -3235,8 +3235,8 @@ describe('javascript', function () { name: 'index.js', assets: [ 'bundle-manifest.js', - 'bundle-url.ts', - 'bundle-url-common.ts', + 'bundle-url.js', + 'bundle-url-common.js', 'cacheLoader.js', 'index.js', 'js-loader.js', @@ -3260,8 +3260,8 @@ describe('javascript', function () { name: 'index.js', assets: [ 'index.js', - 'bundle-url.ts', - 'bundle-url-common.ts', + 'bundle-url.js', + 'bundle-url-common.js', 'cacheLoader.js', 'js-loader.js', 'esmodule-helpers.js', @@ -3294,8 +3294,8 @@ describe('javascript', function () { name: 'index.js', assets: [ 'index.js', - 'bundle-url.ts', - 'bundle-url-common.ts', + 'bundle-url.js', + 'bundle-url-common.js', 'cacheLoader.js', 'js-loader.js', 'esmodule-helpers.js', @@ -3365,8 +3365,8 @@ describe('javascript', function () { name: 'index.js', assets: [ 'index.js', - 'bundle-url.ts', - 'bundle-url-common.ts', + 'bundle-url.js', + 'bundle-url-common.js', 'cacheLoader.js', 'js-loader.js', 'esmodule-helpers.js', @@ -3376,8 +3376,8 @@ describe('javascript', function () { name: 'other-entry.js', assets: [ 'other-entry.js', - 'bundle-url.ts', - 'bundle-url-common.ts', + 'bundle-url.js', + 'bundle-url-common.js', 'cacheLoader.js', 'js-loader.js', ], @@ -3822,8 +3822,8 @@ describe('javascript', function () { name: 'index.js', assets: [ 'index.js', - 'bundle-url.ts', - 'bundle-url-common.ts', + 'bundle-url.js', + 'bundle-url-common.js', 'cacheLoader.js', 'js-loader.js', ], @@ -3853,8 +3853,8 @@ describe('javascript', function () { name: 'index.js', assets: [ 'index.js', - 'bundle-url.ts', - 'bundle-url-common.ts', + 'bundle-url.js', + 'bundle-url-common.js', 'cacheLoader.js', 'js-loader.js', 'bundle-manifest.js', @@ -3940,8 +3940,8 @@ describe('javascript', function () { name: 'index.js', assets: [ 'index.js', - 'bundle-url.ts', - 'bundle-url-common.ts', + 'bundle-url.js', + 'bundle-url-common.js', 'cacheLoader.js', 'css-loader.js', 'esmodule-helpers.js', @@ -4283,8 +4283,8 @@ describe('javascript', function () { 'static-dynamic-url.js', 'other.js', 'esmodule-helpers.js', - 'bundle-url.ts', - 'bundle-url-common.ts', + 'bundle-url.js', + 'bundle-url-common.js', 'cacheLoader.js', 'js-loader.js', ], @@ -4355,8 +4355,8 @@ describe('javascript', function () { assets: [ 'dynamic-url.js', 'esmodule-helpers.js', - 'bundle-url.ts', - 'bundle-url-common.ts', + 'bundle-url.js', + 'bundle-url-common.js', 'cacheLoader.js', 'js-loader.js', ], @@ -4468,8 +4468,8 @@ describe('javascript', function () { name: 'entry-a.js', assets: [ 'bundle-manifest.js', - 'bundle-url.ts', - 'bundle-url-common.ts', + 'bundle-url.js', + 'bundle-url-common.js', 'cacheLoader.js', 'entry-a.js', 'js-loader.js', @@ -4479,8 +4479,8 @@ describe('javascript', function () { name: 'entry-b.js', assets: [ 'bundle-manifest.js', - 'bundle-url.ts', - 'bundle-url-common.ts', + 'bundle-url.js', + 'bundle-url-common.js', 'cacheLoader.js', 'entry-b.js', 'js-loader.js', diff --git a/packages/core/integration-tests/test/lazy-compile.js b/packages/core/integration-tests/test/lazy-compile.js index 5ff89fbeb..5e1f08e20 100644 --- a/packages/core/integration-tests/test/lazy-compile.js +++ b/packages/core/integration-tests/test/lazy-compile.js @@ -92,8 +92,8 @@ describe.v2('lazy compile', function () { { assets: [ 'index.js', - 'bundle-url.ts', - 'bundle-url-common.ts', + 'bundle-url.js', + 'bundle-url-common.js', 'cacheLoader.js', 'js-loader.js', ], @@ -176,8 +176,8 @@ describe.v2('lazy compile', function () { name: /^index.*/, assets: [ 'index.js', - 'bundle-url.ts', - 'bundle-url-common.ts', + 'bundle-url.js', + 'bundle-url-common.js', 'cacheLoader.js', 'js-loader.js', ], @@ -247,8 +247,8 @@ describe.v2('lazy compile', function () { name: /^index.*/, assets: [ 'index.js', - 'bundle-url.ts', - 'bundle-url-common.ts', + 'bundle-url.js', + 'bundle-url-common.js', 'cacheLoader.js', 'js-loader.js', ], diff --git a/packages/core/integration-tests/test/rust.js b/packages/core/integration-tests/test/rust.js index 79fc99177..ea88ef68f 100644 --- a/packages/core/integration-tests/test/rust.js +++ b/packages/core/integration-tests/test/rust.js @@ -27,8 +27,8 @@ describe.skip('rust', function () { name: 'index.js', assets: [ 'bundle-loader.js', - 'bundle-url.ts', - 'bundle-url-common.ts', + 'bundle-url.js', + 'bundle-url-common.js', 'index.js', 'wasm-loader.js', ], @@ -65,8 +65,8 @@ describe.skip('rust', function () { name: 'index.js', assets: [ 'bundle-loader.js', - 'bundle-url.ts', - 'bundle-url-common.ts', + 'bundle-url.js', + 'bundle-url-common.js', 'index.js', 'wasm-loader.js', ], @@ -102,8 +102,8 @@ describe.skip('rust', function () { name: 'index.js', assets: [ 'bundle-loader.js', - 'bundle-url.ts', - 'bundle-url-common.ts', + 'bundle-url.js', + 'bundle-url-common.js', 'index.js', 'wasm-loader.js', ], @@ -133,8 +133,8 @@ describe.skip('rust', function () { name: 'index.js', assets: [ 'bundle-loader.js', - 'bundle-url.ts', - 'bundle-url-common.ts', + 'bundle-url.js', + 'bundle-url-common.js', 'index.js', 'wasm-loader.js', ], @@ -167,8 +167,8 @@ describe.skip('rust', function () { name: 'index.js', assets: [ 'bundle-loader.js', - 'bundle-url.ts', - 'bundle-url-common.ts', + 'bundle-url.js', + 'bundle-url-common.js', 'index.js', 'wasm-loader.js', ], diff --git a/packages/core/integration-tests/test/scope-hoisting.js b/packages/core/integration-tests/test/scope-hoisting.js index 6780978df..a4f5c3395 100644 --- a/packages/core/integration-tests/test/scope-hoisting.js +++ b/packages/core/integration-tests/test/scope-hoisting.js @@ -2378,8 +2378,8 @@ describe('scope hoisting', function () { 'foo.js', 'bar.js', 'bundle-manifest.js', - 'bundle-url.ts', - 'bundle-url-common.ts', + 'bundle-url.js', + 'bundle-url-common.js', 'cacheLoader.js', 'js-loader.js', ], @@ -4360,7 +4360,7 @@ describe('scope hoisting', function () { assertBundles(b, [ { type: 'js', - assets: ['a.js', 'b.js', 'bundle-url.ts', 'bundle-url-common.ts'], + assets: ['a.js', 'b.js', 'bundle-url.js', 'bundle-url-common.js'], }, { type: 'txt', @@ -5637,8 +5637,8 @@ describe('scope hoisting', function () { name: 'same-ancestry-scope-hoisting.js', assets: [ 'bundle-manifest.js', - 'bundle-url.ts', - 'bundle-url-common.ts', + 'bundle-url.js', + 'bundle-url-common.js', 'cacheLoader.js', 'dep.js', 'js-loader.js', @@ -5665,8 +5665,8 @@ describe('scope hoisting', function () { assets: [ 'index.js', 'bundle-manifest.js', - 'bundle-url.ts', - 'bundle-url-common.ts', + 'bundle-url.js', + 'bundle-url-common.js', 'cacheLoader.js', 'js-loader.js', ], @@ -5706,8 +5706,8 @@ describe('scope hoisting', function () { name: 'get-dep-scope-hoisting.js', assets: [ 'bundle-manifest.js', - 'bundle-url.ts', - 'bundle-url-common.ts', + 'bundle-url.js', + 'bundle-url-common.js', 'cacheLoader.js', 'get-dep-scope-hoisting.js', 'js-loader.js', @@ -5757,8 +5757,8 @@ describe('scope hoisting', function () { name: 'scope-hoisting.js', assets: [ 'bundle-manifest.js', - 'bundle-url.ts', - 'bundle-url-common.ts', + 'bundle-url.js', + 'bundle-url-common.js', 'cacheLoader.js', 'scope-hoisting.js', 'js-loader.js', @@ -5810,8 +5810,8 @@ describe('scope hoisting', function () { name: 'scope-hoisting.js', assets: [ 'scope-hoisting.js', - 'bundle-url.ts', - 'bundle-url-common.ts', + 'bundle-url.js', + 'bundle-url-common.js', 'cacheLoader.js', 'js-loader.js', ], @@ -5839,8 +5839,8 @@ describe('scope hoisting', function () { name: 'scope-hoisting.js', assets: [ 'scope-hoisting.js', - 'bundle-url.ts', - 'bundle-url-common.ts', + 'bundle-url.js', + 'bundle-url-common.js', 'cacheLoader.js', 'js-loader.js', ], @@ -5849,8 +5849,8 @@ describe('scope hoisting', function () { name: 'other-entry.js', assets: [ 'other-entry.js', - 'bundle-url.ts', - 'bundle-url-common.ts', + 'bundle-url.js', + 'bundle-url-common.js', 'cacheLoader.js', 'js-loader.js', ], diff --git a/packages/core/integration-tests/test/server.js b/packages/core/integration-tests/test/server.js index 0de51d5e0..c2a5b1305 100644 --- a/packages/core/integration-tests/test/server.js +++ b/packages/core/integration-tests/test/server.js @@ -586,8 +586,8 @@ describe.v2('server', function () { { name: 'index.js', assets: [ - 'bundle-url.ts', - 'bundle-url-common.ts', + 'bundle-url.js', + 'bundle-url-common.js', 'cacheLoader.js', 'css-loader.js', 'index.js', @@ -627,8 +627,8 @@ describe.v2('server', function () { { name: 'index.js', assets: [ - 'bundle-url.ts', - 'bundle-url-common.ts', + 'bundle-url.js', + 'bundle-url-common.js', 'cacheLoader.js', 'css-loader.js', 'index.js', diff --git a/packages/core/integration-tests/test/svg.js b/packages/core/integration-tests/test/svg.js index a1c2604c5..617af4311 100644 --- a/packages/core/integration-tests/test/svg.js +++ b/packages/core/integration-tests/test/svg.js @@ -257,7 +257,7 @@ describe('svg', function () { assertBundles(b, [ { - assets: ['index.js', 'bundle-url.ts', 'bundle-url-common.ts'], + assets: ['index.js', 'bundle-url.js', 'bundle-url-common.js'], }, { assets: ['circle.svg'], diff --git a/packages/core/integration-tests/test/typescript.js b/packages/core/integration-tests/test/typescript.js index 1769bd857..fe4f7eaa0 100644 --- a/packages/core/integration-tests/test/typescript.js +++ b/packages/core/integration-tests/test/typescript.js @@ -113,8 +113,8 @@ describe('typescript', function () { name: 'index.js', assets: [ 'index.ts', - 'bundle-url.ts', - 'bundle-url-common.ts', + 'bundle-url.js', + 'bundle-url-common.js', 'esmodule-helpers.js', ], }, diff --git a/packages/core/integration-tests/test/wasm.js b/packages/core/integration-tests/test/wasm.js index 8963e0cad..ea8ac5c35 100644 --- a/packages/core/integration-tests/test/wasm.js +++ b/packages/core/integration-tests/test/wasm.js @@ -32,8 +32,8 @@ describe.skip('wasm', function () { assets: [ 'index.js', 'bundle-loader.js', - 'bundle-url.ts', - 'bundle-url-common.ts', + 'bundle-url.js', + 'bundle-url-common.js', 'wasm-loader.js', ], childBundles: [ @@ -67,8 +67,8 @@ describe.skip('wasm', function () { assets: [ 'index.js', 'bundle-loader.js', - 'bundle-url.ts', - 'bundle-url-common.ts', + 'bundle-url.js', + 'bundle-url-common.js', 'wasm-loader.js', ], childBundles: [ @@ -101,8 +101,8 @@ describe.skip('wasm', function () { assets: [ 'index.js', 'bundle-loader.js', - 'bundle-url.ts', - 'bundle-url-common.ts', + 'bundle-url.js', + 'bundle-url-common.js', 'js-loader.js', 'wasm-loader.js', ], diff --git a/packages/core/integration-tests/test/watcher.js b/packages/core/integration-tests/test/watcher.js index 6ec393aa3..41fa8bd55 100644 --- a/packages/core/integration-tests/test/watcher.js +++ b/packages/core/integration-tests/test/watcher.js @@ -160,8 +160,8 @@ describe.v2('watcher', function () { 'common.js', 'common-dep.js', 'bundle-loader.js', - 'bundle-url.ts', - 'bundle-url-common.ts', + 'bundle-url.js', + 'bundle-url-common.js', 'js-loader.js', ], childBundles: [ @@ -201,8 +201,8 @@ describe.v2('watcher', function () { assets: [ 'index.js', 'bundle-loader.js', - 'bundle-url.ts', - 'bundle-url-common.ts', + 'bundle-url.js', + 'bundle-url-common.js', 'js-loader.js', ], childBundles: [ @@ -277,8 +277,8 @@ describe.v2('watcher', function () { 'common.js', 'common-dep.js', 'bundle-loader.js', - 'bundle-url.ts', - 'bundle-url-common.ts', + 'bundle-url.js', + 'bundle-url-common.js', 'js-loader.js', ], childBundles: [ @@ -321,8 +321,8 @@ describe.v2('watcher', function () { 'index.js', 'common.js', 'bundle-loader.js', - 'bundle-url.ts', - 'bundle-url-common.ts', + 'bundle-url.js', + 'bundle-url-common.js', 'js-loader.js', ], childBundles: [ @@ -447,8 +447,8 @@ describe.v2('watcher', function () { name: 'index.js', assets: [ 'index.js', - 'bundle-url.ts', - 'bundle-url-common.ts', + 'bundle-url.js', + 'bundle-url-common.js', 'cacheLoader.js', 'js-loader.js', ], @@ -471,8 +471,8 @@ describe.v2('watcher', function () { name: 'index.js', assets: [ 'index.js', - 'bundle-url.ts', - 'bundle-url-common.ts', + 'bundle-url.js', + 'bundle-url-common.js', 'cacheLoader.js', 'js-loader.js', ], diff --git a/packages/core/integration-tests/test/webextension.js b/packages/core/integration-tests/test/webextension.js index b9d15fe36..55393236d 100644 --- a/packages/core/integration-tests/test/webextension.js +++ b/packages/core/integration-tests/test/webextension.js @@ -126,8 +126,8 @@ describe.v2('webextension', function () { assets: [ 'popup.js', 'esmodule-helpers.js', - 'bundle-url.ts', - 'bundle-url-common.ts', + 'bundle-url.js', + 'bundle-url-common.js', ], }, {assets: ['side-panel.html']}, diff --git a/packages/core/integration-tests/test/workers.js b/packages/core/integration-tests/test/workers.js index 705ea32bb..5df48b1e5 100644 --- a/packages/core/integration-tests/test/workers.js +++ b/packages/core/integration-tests/test/workers.js @@ -33,8 +33,8 @@ describe('atlaspack', function () { 'worker-client.js', 'feature.js', 'get-worker-url.js', - 'bundle-url.ts', - 'bundle-url-common.ts', + 'bundle-url.js', + 'bundle-url-common.js', ], }, { @@ -59,16 +59,16 @@ describe('atlaspack', function () { name: 'index.js', assets: [ 'index.js', - 'bundle-url.ts', - 'bundle-url-common.ts', + 'bundle-url.js', + 'bundle-url-common.js', 'get-worker-url.js', ], }, { assets: [ 'worker.js', - 'bundle-url.ts', - 'bundle-url-common.ts', + 'bundle-url.js', + 'bundle-url-common.js', 'cacheLoader.js', 'js-loader.js', ], @@ -109,16 +109,16 @@ describe('atlaspack', function () { name: 'index.js', assets: [ 'index.js', - 'bundle-url.ts', - 'bundle-url-common.ts', + 'bundle-url.js', + 'bundle-url-common.js', 'get-worker-url.js', ], }, { assets: [ 'worker.js', - 'bundle-url.ts', - 'bundle-url-common.ts', + 'bundle-url.js', + 'bundle-url-common.js', 'cacheLoader.js', 'js-loader.js', ], @@ -148,16 +148,16 @@ describe('atlaspack', function () { name: 'index-nested.js', assets: [ 'index-nested.js', - 'bundle-url.ts', - 'bundle-url-common.ts', + 'bundle-url.js', + 'bundle-url-common.js', 'get-worker-url.js', ], }, { assets: [ 'worker-nested.js', - 'bundle-url.ts', - 'bundle-url-common.ts', + 'bundle-url.js', + 'bundle-url-common.js', 'get-worker-url.js', 'cacheLoader.js', 'js-loader.js', @@ -166,8 +166,8 @@ describe('atlaspack', function () { { assets: [ 'worker.js', - 'bundle-url.ts', - 'bundle-url-common.ts', + 'bundle-url.js', + 'bundle-url-common.js', 'cacheLoader.js', 'js-loader.js', ], @@ -199,8 +199,8 @@ describe('atlaspack', function () { name: 'index-async.js', assets: [ 'index-async.js', - 'bundle-url.ts', - 'bundle-url-common.ts', + 'bundle-url.js', + 'bundle-url-common.js', 'get-worker-url.js', 'cacheLoader.js', 'js-loader.js', @@ -209,8 +209,8 @@ describe('atlaspack', function () { { assets: [ 'worker.js', - 'bundle-url.ts', - 'bundle-url-common.ts', + 'bundle-url.js', + 'bundle-url-common.js', 'cacheLoader.js', 'js-loader.js', ], @@ -243,8 +243,8 @@ describe('atlaspack', function () { name: 'index.js', assets: [ 'index.js', - 'bundle-url.ts', - 'bundle-url-common.ts', + 'bundle-url.js', + 'bundle-url-common.js', 'get-worker-url.js', 'workerHelpers.js', 'esmodule-helpers.js', @@ -253,8 +253,8 @@ describe('atlaspack', function () { { assets: [ 'workerHelpers.js', - 'bundle-url.ts', - 'bundle-url-common.ts', + 'bundle-url.js', + 'bundle-url-common.js', 'get-worker-url.js', 'esmodule-helpers.js', ], @@ -273,8 +273,8 @@ describe('atlaspack', function () { { assets: [ 'import-meta.js', - 'bundle-url.ts', - 'bundle-url-common.ts', + 'bundle-url.js', + 'bundle-url-common.js', 'get-worker-url.js', 'esmodule-helpers.js', ], @@ -282,8 +282,8 @@ describe('atlaspack', function () { { assets: [ 'import-meta.js', - 'bundle-url.ts', - 'bundle-url-common.ts', + 'bundle-url.js', + 'bundle-url-common.js', 'get-worker-url.js', 'esmodule-helpers.js', ], @@ -316,8 +316,8 @@ describe('atlaspack', function () { name: 'index.js', assets: [ 'index.js', - 'bundle-url.ts', - 'bundle-url-common.ts', + 'bundle-url.js', + 'bundle-url-common.js', 'get-worker-url.js', 'bundle-manifest.js', ], @@ -382,8 +382,8 @@ describe('atlaspack', function () { name: 'index.js', assets: [ 'index.js', - 'bundle-url.ts', - 'bundle-url-common.ts', + 'bundle-url.js', + 'bundle-url-common.js', 'get-worker-url.js', 'bundle-manifest.js', ], @@ -600,8 +600,8 @@ describe('atlaspack', function () { 'common.js', 'worker-client.js', 'feature.js', - 'bundle-url.ts', - 'bundle-url-common.ts', + 'bundle-url.js', + 'bundle-url-common.js', 'get-worker-url.js', ], }, @@ -729,8 +729,8 @@ describe('atlaspack', function () { type: 'js', assets: [ 'index-variable.js', - 'bundle-url.ts', - 'bundle-url-common.ts', + 'bundle-url.js', + 'bundle-url-common.js', 'get-worker-url.js', ], }, @@ -757,8 +757,8 @@ describe('atlaspack', function () { type: 'js', assets: [ 'index-external.js', - 'bundle-url.ts', - 'bundle-url-common.ts', + 'bundle-url.js', + 'bundle-url-common.js', 'get-worker-url.js', ], }, @@ -783,8 +783,8 @@ describe('atlaspack', function () { assets: [ 'index.js', 'index.js', - 'bundle-url.ts', - 'bundle-url-common.ts', + 'bundle-url.js', + 'bundle-url-common.js', ], }, { @@ -809,7 +809,7 @@ describe('atlaspack', function () { assertBundles(b, [ { name: 'module.js', - assets: ['module.js', 'bundle-url.ts', 'bundle-url-common.ts'], + assets: ['module.js', 'bundle-url.js', 'bundle-url-common.js'], }, { assets: ['module-worker.js'], @@ -842,7 +842,7 @@ describe('atlaspack', function () { assertBundles(b, [ { name: 'scope.js', - assets: ['bundle-url.ts', 'bundle-url-common.ts', 'scope.js'], + assets: ['bundle-url.js', 'bundle-url-common.js', 'scope.js'], }, { assets: ['module-worker.js'], @@ -951,7 +951,7 @@ describe('atlaspack', function () { assertBundles(b, [ { name: 'manifest.js', - assets: ['manifest.js', 'bundle-url.ts', 'bundle-url-common.ts'], + assets: ['manifest.js', 'bundle-url.js', 'bundle-url-common.js'], }, { assets: ['manifest-worker.js', 'service-worker.js'], @@ -984,7 +984,7 @@ describe('atlaspack', function () { assertBundles(b, [ { name: 'index.js', - assets: ['index.js', 'bundle-url.ts', 'bundle-url-common.ts'], + assets: ['index.js', 'bundle-url.js', 'bundle-url-common.js'], }, { assets: ['worker.js'], @@ -1113,8 +1113,8 @@ describe('atlaspack', function () { name: 'index.js', assets: [ 'index.js', - 'bundle-url.ts', - 'bundle-url-common.ts', + 'bundle-url.js', + 'bundle-url-common.js', 'get-worker-url.js', ], }, @@ -1134,8 +1134,8 @@ describe('atlaspack', function () { name: 'index.js', assets: [ 'index.js', - 'bundle-url.ts', - 'bundle-url-common.ts', + 'bundle-url.js', + 'bundle-url-common.js', 'get-worker-url.js', ], }, @@ -1281,8 +1281,8 @@ describe('atlaspack', function () { assets: [ 'index.js', 'lodash.js', - 'bundle-url.ts', - 'bundle-url-common.ts', + 'bundle-url.js', + 'bundle-url-common.js', 'get-worker-url.js', 'bundle-manifest.js', 'esmodule-helpers.js', @@ -1291,8 +1291,8 @@ describe('atlaspack', function () { { assets: [ 'worker-a.js', - 'bundle-url.ts', - 'bundle-url-common.ts', + 'bundle-url.js', + 'bundle-url-common.js', 'get-worker-url.js', 'bundle-manifest.js', ], @@ -1343,15 +1343,15 @@ describe('atlaspack', function () { 'get-worker-url.js', 'lodash.js', 'esmodule-helpers.js', - 'bundle-url.ts', - 'bundle-url-common.ts', + 'bundle-url.js', + 'bundle-url-common.js', ], }, { assets: [ 'bundle-manifest.js', - 'bundle-url.ts', - 'bundle-url-common.ts', + 'bundle-url.js', + 'bundle-url-common.js', ], }, { @@ -1415,8 +1415,8 @@ describe('atlaspack', function () { { assets: [ 'bundle-manifest.js', - 'bundle-url.ts', - 'bundle-url-common.ts', + 'bundle-url.js', + 'bundle-url-common.js', 'cacheLoader.js', 'get-worker-url.js', 'index.js', @@ -1427,8 +1427,8 @@ describe('atlaspack', function () { { assets: [ 'bundle-manifest.js', - 'bundle-url.ts', - 'bundle-url-common.ts', + 'bundle-url.js', + 'bundle-url-common.js', 'cacheLoader.js', 'js-loader.js', 'large.js', @@ -1471,16 +1471,16 @@ describe('atlaspack', function () { { name: 'index.js', assets: [ - 'bundle-url.ts', - 'bundle-url-common.ts', + 'bundle-url.js', + 'bundle-url-common.js', 'get-worker-url.js', 'index.js', ], }, { assets: [ - 'bundle-url.ts', - 'bundle-url-common.ts', + 'bundle-url.js', + 'bundle-url-common.js', 'get-worker-url.js', 'worker1.js', 'worker2.js', diff --git a/packages/core/integration-tests/test/worklets.js b/packages/core/integration-tests/test/worklets.js index 54834b635..90e03d08c 100644 --- a/packages/core/integration-tests/test/worklets.js +++ b/packages/core/integration-tests/test/worklets.js @@ -52,7 +52,7 @@ describe('atlaspack', function () { assertBundles(b, [ { name: 'url-worklet.js', - assets: ['bundle-url.ts', 'bundle-url-common.ts', 'url-worklet.js'], + assets: ['bundle-url.js', 'bundle-url-common.js', 'url-worklet.js'], }, { type: 'js', @@ -99,8 +99,8 @@ describe('atlaspack', function () { { name: 'pipeline.js', assets: [ - 'bundle-url.ts', - 'bundle-url-common.ts', + 'bundle-url.js', + 'bundle-url-common.js', 'pipeline.js', 'bundle-manifest.js', ], @@ -145,8 +145,8 @@ describe('atlaspack', function () { { name: 'url.js', assets: [ - 'bundle-url.ts', - 'bundle-url-common.ts', + 'bundle-url.js', + 'bundle-url-common.js', 'esmodule-helpers.js', 'url.js', ], @@ -248,8 +248,8 @@ describe('atlaspack', function () { { name: 'worklet-pipeline.js', assets: [ - 'bundle-url.ts', - 'bundle-url-common.ts', + 'bundle-url.js', + 'bundle-url-common.js', 'bundle-manifest.js', 'worklet-pipeline.js', ], diff --git a/packages/runtimes/js/src/helpers/bundle-url-common.ts b/packages/runtimes/js/src/helpers/bundle-url-common.js similarity index 58% rename from packages/runtimes/js/src/helpers/bundle-url-common.ts rename to packages/runtimes/js/src/helpers/bundle-url-common.js index 982ab1feb..8a44855a8 100644 --- a/packages/runtimes/js/src/helpers/bundle-url-common.ts +++ b/packages/runtimes/js/src/helpers/bundle-url-common.js @@ -1,5 +1,9 @@ -// Get the URL without the filename (last / segment) -function getBaseURL(url: string) { +/** Get the URL without the filename (last / segment) + * + * @param {string} url + * @returns {string} The URL with the file name removed + */ +function getBaseURL(url) { return url.slice(0, url.lastIndexOf('/')) + '/'; } diff --git a/packages/runtimes/js/src/helpers/bundle-url-shards.ts b/packages/runtimes/js/src/helpers/bundle-url-shards.js similarity index 74% rename from packages/runtimes/js/src/helpers/bundle-url-shards.ts rename to packages/runtimes/js/src/helpers/bundle-url-shards.js index 23d928a95..c9667bc11 100644 --- a/packages/runtimes/js/src/helpers/bundle-url-shards.ts +++ b/packages/runtimes/js/src/helpers/bundle-url-shards.js @@ -1,12 +1,17 @@ const {getBaseURL, stackTraceUrlRegexp} = require('./bundle-url-common'); -const bundleURL: Record = {}; - -function getShardedBundleURL( - bundleName: string, - maxShards: number, - inputError?: string, -): string { +const bundleURL = {}; + +/** + * Retrieves the sharded bundle URL based on the bundle name and the maximum number of shards. + * + * @param {string} bundleName - The file name of the requested bundle. + * @param {number} maxShards - The maximum number of domain shards available. + * @param {Error} inputError - An error object to extract the stack trace from + * (for testing purposes). + * @returns {string} The URL of the sharded bundle, without file name. + */ +function getShardedBundleURL(bundleName, maxShards, inputError) { let value = bundleURL[bundleName]; if (value) { @@ -28,7 +33,7 @@ function getShardedBundleURL( const baseUrl = getBaseURL(stackUrl); // Global variable is set by SSR servers when HTTP1.1 traffic is detected - if (!Boolean(globalThis.__ATLASPACK_ENABLE_DOMAIN_SHARDS)) { + if (!globalThis.__ATLASPACK_ENABLE_DOMAIN_SHARDS) { bundleURL[bundleName] = baseUrl; return baseUrl; } @@ -46,7 +51,7 @@ function getShardedBundleURL( } } -function getDomainShardIndex(str: string, maxShards: number) { +function getDomainShardIndex(str, maxShards) { let shard = str.split('').reduce((a, b) => { const n = (a << maxShards) - a + b.charCodeAt(0); @@ -65,7 +70,7 @@ function getDomainShardIndex(str: string, maxShards: number) { return shard; } -function getShardedDomain(domain: string, shard: number) { +function getShardedDomain(domain, shard) { let i = domain.indexOf('.'); // Domains like localhost have no . separators @@ -82,7 +87,7 @@ function getShardedDomain(domain: string, shard: number) { const trailingShardRegex = /-\d+$/; -function removeTrailingShard(subdomain: string) { +function removeTrailingShard(subdomain) { if (!trailingShardRegex.test(subdomain)) { return subdomain; } diff --git a/packages/runtimes/js/src/helpers/bundle-url.ts b/packages/runtimes/js/src/helpers/bundle-url.js similarity index 65% rename from packages/runtimes/js/src/helpers/bundle-url.ts rename to packages/runtimes/js/src/helpers/bundle-url.js index 48f6fc1a3..bbd4161b3 100644 --- a/packages/runtimes/js/src/helpers/bundle-url.ts +++ b/packages/runtimes/js/src/helpers/bundle-url.js @@ -2,7 +2,14 @@ const {getBaseURL, stackTraceUrlRegexp} = require('./bundle-url-common'); const bundleURL = {}; -function getBundleURLCached(id: string) { +/** + * Retrieves the cached bundle URL for a given identifier. + * If the URL is not cached, it computes and stores it in the cache. + * + * @param {string} id - The identifier for the bundle. + * @returns {string} The URL of the bundle, without file name. + */ +function getBundleURLCached(id) { let value = bundleURL[id]; if (!value) { @@ -28,7 +35,11 @@ function getBundleURL() { return '/'; } -function getOrigin(url: string) { +/** + * @param {string} url + * @returns {string} + */ +function getOrigin(url) { return new URL(url).origin; }