@@ -5415,7 +5415,7 @@ fragment.jsx: WARNING: "import.meta" is not available in the configured target e
5415
5415
}
5416
5416
5417
5417
func TestBundlingFilesOutsideOfOutbase (t * testing.T ) {
5418
- splitting_suite .expectBundled (t , bundled {
5418
+ default_suite .expectBundled (t , bundled {
5419
5419
files : map [string ]string {
5420
5420
"/src/entry.js" : `
5421
5421
console.log('test')
@@ -5510,7 +5510,7 @@ var relocateEntries = []string{
5510
5510
}
5511
5511
5512
5512
func TestVarRelocatingBundle (t * testing.T ) {
5513
- splitting_suite .expectBundled (t , bundled {
5513
+ default_suite .expectBundled (t , bundled {
5514
5514
files : relocateFiles ,
5515
5515
entryPaths : relocateEntries ,
5516
5516
options : config.Options {
@@ -5522,7 +5522,7 @@ func TestVarRelocatingBundle(t *testing.T) {
5522
5522
}
5523
5523
5524
5524
func TestVarRelocatingNoBundle (t * testing.T ) {
5525
- splitting_suite .expectBundled (t , bundled {
5525
+ default_suite .expectBundled (t , bundled {
5526
5526
files : relocateFiles ,
5527
5527
entryPaths : relocateEntries ,
5528
5528
options : config.Options {
@@ -5817,7 +5817,7 @@ func TestEntryNamesNonPortableCharacter(t *testing.T) {
5817
5817
}
5818
5818
5819
5819
func TestEntryNamesChunkNamesExtPlaceholder (t * testing.T ) {
5820
- loader_suite .expectBundled (t , bundled {
5820
+ default_suite .expectBundled (t , bundled {
5821
5821
files : map [string ]string {
5822
5822
"/src/entries/entry1.js" : `import "../lib/shared.js"; import "./entry1.css"; console.log('entry1')` ,
5823
5823
"/src/entries/entry2.js" : `import "../lib/shared.js"; import "./entry2.css"; console.log('entry2')` ,
@@ -5849,7 +5849,7 @@ func TestEntryNamesChunkNamesExtPlaceholder(t *testing.T) {
5849
5849
}
5850
5850
5851
5851
func TestMinifyIdentifiersImportPathFrequencyAnalysis (t * testing.T ) {
5852
- loader_suite .expectBundled (t , bundled {
5852
+ default_suite .expectBundled (t , bundled {
5853
5853
files : map [string ]string {
5854
5854
"/import.js" : `
5855
5855
import foo from "./WWWWWWWWWWXXXXXXXXXXYYYYYYYYYYZZZZZZZZZZ"
@@ -5877,7 +5877,7 @@ func TestMinifyIdentifiersImportPathFrequencyAnalysis(t *testing.T) {
5877
5877
}
5878
5878
5879
5879
func TestToESMWrapperOmission (t * testing.T ) {
5880
- loader_suite .expectBundled (t , bundled {
5880
+ default_suite .expectBundled (t , bundled {
5881
5881
files : map [string ]string {
5882
5882
"/entry.js" : `
5883
5883
import 'a_nowrap'
@@ -5928,7 +5928,7 @@ func TestToESMWrapperOmission(t *testing.T) {
5928
5928
// return foo2;
5929
5929
// };
5930
5930
func TestNamedFunctionExpressionArgumentCollision (t * testing.T ) {
5931
- loader_suite .expectBundled (t , bundled {
5931
+ default_suite .expectBundled (t , bundled {
5932
5932
files : map [string ]string {
5933
5933
"/entry.js" : `
5934
5934
let x = function foo(foo) {
@@ -5947,7 +5947,7 @@ func TestNamedFunctionExpressionArgumentCollision(t *testing.T) {
5947
5947
}
5948
5948
5949
5949
func TestNoWarnCommonJSExportsInESMPassThrough (t * testing.T ) {
5950
- loader_suite .expectBundled (t , bundled {
5950
+ default_suite .expectBundled (t , bundled {
5951
5951
files : map [string ]string {
5952
5952
"/cjs-in-esm.js" : `
5953
5953
export let foo = 1
@@ -5976,7 +5976,7 @@ func TestNoWarnCommonJSExportsInESMPassThrough(t *testing.T) {
5976
5976
}
5977
5977
5978
5978
func TestWarnCommonJSExportsInESMConvert (t * testing.T ) {
5979
- loader_suite .expectBundled (t , bundled {
5979
+ default_suite .expectBundled (t , bundled {
5980
5980
files : map [string ]string {
5981
5981
"/cjs-in-esm.js" : `
5982
5982
export let foo = 1
@@ -6019,7 +6019,7 @@ cjs-in-esm2.js: NOTE: This file is considered to be an ECMAScript module because
6019
6019
}
6020
6020
6021
6021
func TestWarnCommonJSExportsInESMBundle (t * testing.T ) {
6022
- loader_suite .expectBundled (t , bundled {
6022
+ default_suite .expectBundled (t , bundled {
6023
6023
files : map [string ]string {
6024
6024
"/cjs-in-esm.js" : `
6025
6025
export let foo = 1
@@ -6059,7 +6059,7 @@ cjs-in-esm.js: NOTE: This file is considered to be an ECMAScript module because
6059
6059
}
6060
6060
6061
6061
func TestMangleProps (t * testing.T ) {
6062
- loader_suite .expectBundled (t , bundled {
6062
+ default_suite .expectBundled (t , bundled {
6063
6063
files : map [string ]string {
6064
6064
"/entry1.js" : `
6065
6065
export function shouldMangle() {
@@ -6115,7 +6115,7 @@ func TestMangleProps(t *testing.T) {
6115
6115
}
6116
6116
6117
6117
func TestManglePropsMinify (t * testing.T ) {
6118
- loader_suite .expectBundled (t , bundled {
6118
+ default_suite .expectBundled (t , bundled {
6119
6119
files : map [string ]string {
6120
6120
// These repeating characters test for frequency analysis
6121
6121
@@ -6175,7 +6175,7 @@ func TestManglePropsMinify(t *testing.T) {
6175
6175
}
6176
6176
6177
6177
func TestManglePropsKeywordPropertyMinify (t * testing.T ) {
6178
- loader_suite .expectBundled (t , bundled {
6178
+ default_suite .expectBundled (t , bundled {
6179
6179
files : map [string ]string {
6180
6180
"/entry.js" : `
6181
6181
class Foo {
@@ -6196,7 +6196,7 @@ func TestManglePropsKeywordPropertyMinify(t *testing.T) {
6196
6196
}
6197
6197
6198
6198
func TestManglePropsOptionalChain (t * testing.T ) {
6199
- loader_suite .expectBundled (t , bundled {
6199
+ default_suite .expectBundled (t , bundled {
6200
6200
files : map [string ]string {
6201
6201
"/entry.js" : `
6202
6202
export default function(x) {
@@ -6221,7 +6221,7 @@ func TestManglePropsOptionalChain(t *testing.T) {
6221
6221
}
6222
6222
6223
6223
func TestManglePropsLoweredOptionalChain (t * testing.T ) {
6224
- loader_suite .expectBundled (t , bundled {
6224
+ default_suite .expectBundled (t , bundled {
6225
6225
files : map [string ]string {
6226
6226
"/entry.js" : `
6227
6227
export default function(x) {
@@ -6247,7 +6247,7 @@ func TestManglePropsLoweredOptionalChain(t *testing.T) {
6247
6247
}
6248
6248
6249
6249
func TestReserveProps (t * testing.T ) {
6250
- loader_suite .expectBundled (t , bundled {
6250
+ default_suite .expectBundled (t , bundled {
6251
6251
files : map [string ]string {
6252
6252
"/entry.js" : `
6253
6253
export default {
@@ -6267,7 +6267,7 @@ func TestReserveProps(t *testing.T) {
6267
6267
}
6268
6268
6269
6269
func TestManglePropsImportExport (t * testing.T ) {
6270
- loader_suite .expectBundled (t , bundled {
6270
+ default_suite .expectBundled (t , bundled {
6271
6271
files : map [string ]string {
6272
6272
// These don't count as property names, and aren't mangled
6273
6273
"/esm.js" : `
@@ -6294,7 +6294,7 @@ func TestManglePropsImportExport(t *testing.T) {
6294
6294
}
6295
6295
6296
6296
func TestManglePropsImportExportBundled (t * testing.T ) {
6297
- loader_suite .expectBundled (t , bundled {
6297
+ default_suite .expectBundled (t , bundled {
6298
6298
files : map [string ]string {
6299
6299
// Note: import and export syntax does not count as a property name. That
6300
6300
// means the following code is broken. This test just serves to document
@@ -6339,7 +6339,7 @@ func TestManglePropsImportExportBundled(t *testing.T) {
6339
6339
}
6340
6340
6341
6341
func TestManglePropsJSXTransform (t * testing.T ) {
6342
- loader_suite .expectBundled (t , bundled {
6342
+ default_suite .expectBundled (t , bundled {
6343
6343
files : map [string ]string {
6344
6344
"/entry.jsx" : `
6345
6345
let Foo = {
@@ -6371,7 +6371,7 @@ func TestManglePropsJSXTransform(t *testing.T) {
6371
6371
}
6372
6372
6373
6373
func TestManglePropsJSXPreserve (t * testing.T ) {
6374
- loader_suite .expectBundled (t , bundled {
6374
+ default_suite .expectBundled (t , bundled {
6375
6375
files : map [string ]string {
6376
6376
"/entry.jsx" : `
6377
6377
let Foo = {
@@ -6396,7 +6396,7 @@ func TestManglePropsJSXPreserve(t *testing.T) {
6396
6396
}
6397
6397
6398
6398
func TestManglePropsJSXTransformNamespace (t * testing.T ) {
6399
- loader_suite .expectBundled (t , bundled {
6399
+ default_suite .expectBundled (t , bundled {
6400
6400
files : map [string ]string {
6401
6401
"/entry.jsx" : `
6402
6402
export default [
@@ -6416,7 +6416,7 @@ func TestManglePropsJSXTransformNamespace(t *testing.T) {
6416
6416
}
6417
6417
6418
6418
func TestManglePropsAvoidCollisions (t * testing.T ) {
6419
- loader_suite .expectBundled (t , bundled {
6419
+ default_suite .expectBundled (t , bundled {
6420
6420
files : map [string ]string {
6421
6421
"/entry.js" : `
6422
6422
export default {
@@ -6438,7 +6438,7 @@ func TestManglePropsAvoidCollisions(t *testing.T) {
6438
6438
}
6439
6439
6440
6440
func TestManglePropsTypeScriptFeatures (t * testing.T ) {
6441
- loader_suite .expectBundled (t , bundled {
6441
+ default_suite .expectBundled (t , bundled {
6442
6442
files : map [string ]string {
6443
6443
"/parameter-properties.ts" : `
6444
6444
class Foo {
@@ -6546,7 +6546,7 @@ func TestManglePropsTypeScriptFeatures(t *testing.T) {
6546
6546
}
6547
6547
6548
6548
func TestManglePropsShorthand (t * testing.T ) {
6549
- loader_suite .expectBundled (t , bundled {
6549
+ default_suite .expectBundled (t , bundled {
6550
6550
files : map [string ]string {
6551
6551
"/entry.js" : `
6552
6552
// This should print as "({ y }) => ({ y })" not "({ y: y }) => ({ y: y })"
@@ -6564,7 +6564,7 @@ func TestManglePropsShorthand(t *testing.T) {
6564
6564
}
6565
6565
6566
6566
func TestManglePropsNoShorthand (t * testing.T ) {
6567
- loader_suite .expectBundled (t , bundled {
6567
+ default_suite .expectBundled (t , bundled {
6568
6568
files : map [string ]string {
6569
6569
"/entry.js" : `
6570
6570
// This should print as "({ y }) => ({ y: y })" not "({ y: y }) => ({ y: y })"
@@ -6583,7 +6583,7 @@ func TestManglePropsNoShorthand(t *testing.T) {
6583
6583
}
6584
6584
6585
6585
func TestManglePropsLoweredClassFields (t * testing.T ) {
6586
- loader_suite .expectBundled (t , bundled {
6586
+ default_suite .expectBundled (t , bundled {
6587
6587
files : map [string ]string {
6588
6588
"/entry.js" : `
6589
6589
class Foo {
@@ -6608,7 +6608,7 @@ func TestManglePropsLoweredClassFields(t *testing.T) {
6608
6608
// The fix was to prevent the property "constructor" from being mangled.
6609
6609
// See: https://github.com/evanw/esbuild/issues/1976
6610
6610
func TestManglePropsSuperCall (t * testing.T ) {
6611
- loader_suite .expectBundled (t , bundled {
6611
+ default_suite .expectBundled (t , bundled {
6612
6612
files : map [string ]string {
6613
6613
"/entry.js" : `
6614
6614
class Foo {}
@@ -6629,7 +6629,7 @@ func TestManglePropsSuperCall(t *testing.T) {
6629
6629
}
6630
6630
6631
6631
func TestMangleNoQuotedProps (t * testing.T ) {
6632
- loader_suite .expectBundled (t , bundled {
6632
+ default_suite .expectBundled (t , bundled {
6633
6633
files : map [string ]string {
6634
6634
"/entry.js" : `
6635
6635
x['_doNotMangleThis'];
@@ -6657,7 +6657,7 @@ func TestMangleNoQuotedProps(t *testing.T) {
6657
6657
}
6658
6658
6659
6659
func TestMangleNoQuotedPropsMinifySyntax (t * testing.T ) {
6660
- loader_suite .expectBundled (t , bundled {
6660
+ default_suite .expectBundled (t , bundled {
6661
6661
files : map [string ]string {
6662
6662
"/entry.js" : `
6663
6663
x['_doNotMangleThis'];
@@ -6686,7 +6686,7 @@ func TestMangleNoQuotedPropsMinifySyntax(t *testing.T) {
6686
6686
}
6687
6687
6688
6688
func TestMangleQuotedProps (t * testing.T ) {
6689
- loader_suite .expectBundled (t , bundled {
6689
+ default_suite .expectBundled (t , bundled {
6690
6690
files : map [string ]string {
6691
6691
"/keep.js" : `
6692
6692
foo("_keepThisProperty");
@@ -6734,7 +6734,7 @@ func TestMangleQuotedProps(t *testing.T) {
6734
6734
}
6735
6735
6736
6736
func TestMangleQuotedPropsMinifySyntax (t * testing.T ) {
6737
- loader_suite .expectBundled (t , bundled {
6737
+ default_suite .expectBundled (t , bundled {
6738
6738
files : map [string ]string {
6739
6739
"/keep.js" : `
6740
6740
foo("_keepThisProperty");
@@ -6783,7 +6783,7 @@ func TestMangleQuotedPropsMinifySyntax(t *testing.T) {
6783
6783
}
6784
6784
6785
6785
func TestIndirectRequireMessage (t * testing.T ) {
6786
- loader_suite .expectBundled (t , bundled {
6786
+ default_suite .expectBundled (t , bundled {
6787
6787
files : map [string ]string {
6788
6788
"/array.js" : `let x = [require]` ,
6789
6789
"/assign.js" : `require = x` ,
@@ -6813,7 +6813,7 @@ ident.js: DEBUG: Indirect calls to "require" will not be bundled
6813
6813
}
6814
6814
6815
6815
func TestAmbiguousReexportMsg (t * testing.T ) {
6816
- loader_suite .expectBundled (t , bundled {
6816
+ default_suite .expectBundled (t , bundled {
6817
6817
files : map [string ]string {
6818
6818
"/entry.js" : `
6819
6819
export * from './a'
@@ -6839,7 +6839,7 @@ b.js: NOTE: Another definition of "x" comes from "b.js" here:
6839
6839
6840
6840
// See: https://github.com/evanw/esbuild/issues/2537
6841
6841
func TestNonDeterminismIssue2537 (t * testing.T ) {
6842
- loader_suite .expectBundled (t , bundled {
6842
+ default_suite .expectBundled (t , bundled {
6843
6843
files : map [string ]string {
6844
6844
"/entry.ts" : `
6845
6845
export function aap(noot: boolean, wim: number) {
@@ -6875,7 +6875,7 @@ func TestNonDeterminismIssue2537(t *testing.T) {
6875
6875
6876
6876
// See: https://github.com/evanw/esbuild/issues/2697
6877
6877
func TestMinifiedJSXPreserveWithObjectSpread (t * testing.T ) {
6878
- loader_suite .expectBundled (t , bundled {
6878
+ default_suite .expectBundled (t , bundled {
6879
6879
files : map [string ]string {
6880
6880
"/entry.jsx" : `
6881
6881
const obj = {
@@ -6913,7 +6913,7 @@ func TestMinifiedJSXPreserveWithObjectSpread(t *testing.T) {
6913
6913
}
6914
6914
6915
6915
func TestPackageAlias (t * testing.T ) {
6916
- loader_suite .expectBundled (t , bundled {
6916
+ default_suite .expectBundled (t , bundled {
6917
6917
files : map [string ]string {
6918
6918
"/entry.js" : `
6919
6919
import "pkg1"
@@ -6958,7 +6958,7 @@ func TestPackageAlias(t *testing.T) {
6958
6958
}
6959
6959
6960
6960
func TestErrorsForAssertTypeJSON (t * testing.T ) {
6961
- loader_suite .expectBundled (t , bundled {
6961
+ default_suite .expectBundled (t , bundled {
6962
6962
files : map [string ]string {
6963
6963
"/js-entry.js" : `
6964
6964
import all from './foo.json' assert { type: 'json' }
@@ -7037,7 +7037,7 @@ NOTE: You can either keep the import assertion and only use the "default" import
7037
7037
}
7038
7038
7039
7039
func TestOutputForAssertTypeJSON (t * testing.T ) {
7040
- loader_suite .expectBundled (t , bundled {
7040
+ default_suite .expectBundled (t , bundled {
7041
7041
files : map [string ]string {
7042
7042
"/js-entry.js" : `
7043
7043
import all from './foo.json' assert { type: 'json' }
@@ -7084,7 +7084,7 @@ NOTE: You can either keep the import assertion and only use the "default" import
7084
7084
}
7085
7085
7086
7086
func TestExternalPackages (t * testing.T ) {
7087
- loader_suite .expectBundled (t , bundled {
7087
+ default_suite .expectBundled (t , bundled {
7088
7088
files : map [string ]string {
7089
7089
"/project/entry.js" : `
7090
7090
import 'pkg1'
@@ -7117,7 +7117,7 @@ func TestExternalPackages(t *testing.T) {
7117
7117
}
7118
7118
7119
7119
func TestMetafileVariousCases (t * testing.T ) {
7120
- loader_suite .expectBundled (t , bundled {
7120
+ default_suite .expectBundled (t , bundled {
7121
7121
files : map [string ]string {
7122
7122
"/project/entry.js" : `
7123
7123
import a from 'extern-esm'
@@ -7182,7 +7182,7 @@ func TestMetafileVariousCases(t *testing.T) {
7182
7182
}
7183
7183
7184
7184
func TestMetafileNoBundle (t * testing.T ) {
7185
- loader_suite .expectBundled (t , bundled {
7185
+ default_suite .expectBundled (t , bundled {
7186
7186
files : map [string ]string {
7187
7187
"/project/entry.js" : `
7188
7188
import a from 'pkg'
@@ -7216,7 +7216,7 @@ func TestMetafileNoBundle(t *testing.T) {
7216
7216
}
7217
7217
7218
7218
func TestMetafileVeryLongExternalPaths (t * testing.T ) {
7219
- loader_suite .expectBundled (t , bundled {
7219
+ default_suite .expectBundled (t , bundled {
7220
7220
files : map [string ]string {
7221
7221
"/project/bytesInOutput should be at least 99 (1).js" : `
7222
7222
import a from './` + strings .Repeat ("1" , 99 ) + `.file'
0 commit comments