Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
622a89b
commit d0312ff
Showing
52 changed files
with
264 additions
and
119 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
...unking-form/samples/indirect-reexports-preserve-modules/_expected/amd/components/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
test/chunking-form/samples/indirect-reexports-preserve-modules/_expected/amd/main.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
12 changes: 12 additions & 0 deletions
12
test/form/samples/deprecated/prune-pure-unused-import-array/_config.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
module.exports = { | ||
description: 'prunes pure unused external imports ([#1352])', | ||
expectedWarnings: ['DEPRECATED_FEATURE'], | ||
options: { | ||
strictDeprecations: false, | ||
external: ['external', 'other'], | ||
treeshake: { pureExternalModules: ['external'] }, | ||
output: { | ||
globals: { other: 'other' } | ||
} | ||
} | ||
}; |
5 changes: 5 additions & 0 deletions
5
test/form/samples/deprecated/prune-pure-unused-import-array/_expected/amd.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
define(['other'], function (other) { 'use strict'; | ||
|
||
|
||
|
||
}); |
4 changes: 4 additions & 0 deletions
4
test/form/samples/deprecated/prune-pure-unused-import-array/_expected/cjs.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
'use strict'; | ||
|
||
require('other'); | ||
|
1 change: 1 addition & 0 deletions
1
test/form/samples/deprecated/prune-pure-unused-import-array/_expected/es.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
import 'other'; |
6 changes: 6 additions & 0 deletions
6
test/form/samples/deprecated/prune-pure-unused-import-array/_expected/iife.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
(function (other) { | ||
'use strict'; | ||
|
||
|
||
|
||
}(other)); |
11 changes: 11 additions & 0 deletions
11
test/form/samples/deprecated/prune-pure-unused-import-array/_expected/system.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
System.register(['other'], function () { | ||
'use strict'; | ||
return { | ||
setters: [function () {}], | ||
execute: function () { | ||
|
||
|
||
|
||
} | ||
}; | ||
}); |
9 changes: 9 additions & 0 deletions
9
test/form/samples/deprecated/prune-pure-unused-import-array/_expected/umd.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
(function (global, factory) { | ||
typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('other')) : | ||
typeof define === 'function' && define.amd ? define(['other'], factory) : | ||
(global = global || self, factory(global.other)); | ||
}(this, (function (other) { 'use strict'; | ||
|
||
|
||
|
||
}))); |
7 changes: 7 additions & 0 deletions
7
test/form/samples/deprecated/prune-pure-unused-import-array/main.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { unused } from 'external'; | ||
import { notused } from 'other'; | ||
|
||
function alsoUnused () { | ||
unused(); | ||
notused(); | ||
} |
12 changes: 12 additions & 0 deletions
12
test/form/samples/deprecated/prune-pure-unused-import-function/_config.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
module.exports = { | ||
description: 'prunes pure unused external imports ([#1352])', | ||
expectedWarnings: ['DEPRECATED_FEATURE', 'EMPTY_BUNDLE'], | ||
options: { | ||
strictDeprecations: false, | ||
external: ['external', 'other'], | ||
treeshake: { pureExternalModules: id => id === 'external' }, | ||
output: { | ||
globals: { other: 'other' } | ||
} | ||
} | ||
}; |
5 changes: 5 additions & 0 deletions
5
test/form/samples/deprecated/prune-pure-unused-import-function/_expected/amd.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
define(['other'], function (other) { 'use strict'; | ||
|
||
|
||
|
||
}); |
4 changes: 4 additions & 0 deletions
4
test/form/samples/deprecated/prune-pure-unused-import-function/_expected/cjs.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
'use strict'; | ||
|
||
require('other'); | ||
|
1 change: 1 addition & 0 deletions
1
test/form/samples/deprecated/prune-pure-unused-import-function/_expected/es.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
import 'other'; |
6 changes: 6 additions & 0 deletions
6
test/form/samples/deprecated/prune-pure-unused-import-function/_expected/iife.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
(function (other) { | ||
'use strict'; | ||
|
||
|
||
|
||
}(other)); |
11 changes: 11 additions & 0 deletions
11
test/form/samples/deprecated/prune-pure-unused-import-function/_expected/system.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
System.register(['other'], function () { | ||
'use strict'; | ||
return { | ||
setters: [function () {}], | ||
execute: function () { | ||
|
||
|
||
|
||
} | ||
}; | ||
}); |
9 changes: 9 additions & 0 deletions
9
test/form/samples/deprecated/prune-pure-unused-import-function/_expected/umd.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
(function (global, factory) { | ||
typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('other')) : | ||
typeof define === 'function' && define.amd ? define(['other'], factory) : | ||
(global = global || self, factory(global.other)); | ||
}(this, (function (other) { 'use strict'; | ||
|
||
|
||
|
||
}))); |
Oops, something went wrong.