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
fd6c187
commit 0e84d4b
Showing
11 changed files
with
116 additions
and
7 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
module.exports = { | ||
description: 'Externals aliases with deshadowing', | ||
options: { | ||
name: 'myBundle' | ||
} | ||
}; |
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,18 @@ | ||
define(['exports', 'a', 'b'], function (exports, a, Test) { 'use strict'; | ||
|
||
Test = Test && Test.hasOwnProperty('default') ? Test['default'] : Test; | ||
|
||
const Test$1 = () => { | ||
console.log(a.Test); | ||
}; | ||
|
||
const Test1 = () => { | ||
console.log(Test); | ||
}; | ||
|
||
exports.Test = Test$1; | ||
exports.Test1 = Test1; | ||
|
||
Object.defineProperty(exports, '__esModule', { value: true }); | ||
|
||
}); |
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,19 @@ | ||
'use strict'; | ||
|
||
Object.defineProperty(exports, '__esModule', { value: true }); | ||
|
||
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } | ||
|
||
var a = require('a'); | ||
var Test = _interopDefault(require('b')); | ||
|
||
const Test$1 = () => { | ||
console.log(a.Test); | ||
}; | ||
|
||
const Test1 = () => { | ||
console.log(Test); | ||
}; | ||
|
||
exports.Test = Test$1; | ||
exports.Test1 = Test1; |
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 @@ | ||
import { Test } from 'a'; | ||
import Test$1 from 'b'; | ||
|
||
const Test$2 = () => { | ||
console.log(Test); | ||
}; | ||
|
||
const Test1 = () => { | ||
console.log(Test$1); | ||
}; | ||
|
||
export { Test$2 as Test, Test1 }; |
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,19 @@ | ||
var myBundle = (function (exports,a,Test) { | ||
'use strict'; | ||
|
||
Test = Test && Test.hasOwnProperty('default') ? Test['default'] : Test; | ||
|
||
const Test$1 = () => { | ||
console.log(a.Test); | ||
}; | ||
|
||
const Test1 = () => { | ||
console.log(Test); | ||
}; | ||
|
||
exports.Test = Test$1; | ||
exports.Test1 = Test1; | ||
|
||
return exports; | ||
|
||
}({},a,Test)); |
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,22 @@ | ||
(function (global, factory) { | ||
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('a'), require('b')) : | ||
typeof define === 'function' && define.amd ? define(['exports', 'a', 'b'], factory) : | ||
(factory((global.myBundle = {}),global.a,global.Test)); | ||
}(this, (function (exports,a,Test) { 'use strict'; | ||
|
||
Test = Test && Test.hasOwnProperty('default') ? Test['default'] : Test; | ||
|
||
const Test$1 = () => { | ||
console.log(a.Test); | ||
}; | ||
|
||
const Test1 = () => { | ||
console.log(Test); | ||
}; | ||
|
||
exports.Test = Test$1; | ||
exports.Test1 = Test1; | ||
|
||
Object.defineProperty(exports, '__esModule', { value: true }); | ||
|
||
}))); |
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 @@ | ||
import { Test as Test1 } from 'a'; | ||
|
||
export const Test = () => { | ||
console.log(Test1); | ||
}; |
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 @@ | ||
import Test from 'b'; | ||
|
||
export const Test1 = () => { | ||
console.log(Test); | ||
}; |
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,2 @@ | ||
export { Test } from './component-one.js'; | ||
export { Test1 } from './component-two.js'; |