mirror of https://github.com/lukechilds/rollup.git
9 changed files with 57 additions and 1 deletions
@ -0,0 +1,3 @@ |
|||
module.exports = { |
|||
description: 'ensures bundle imports are deconflicted (#659)' |
|||
}; |
@ -0,0 +1,7 @@ |
|||
define(['foo', 'bar'], function (foo, bar) { 'use strict'; |
|||
|
|||
console.log( bar.a ); |
|||
|
|||
console.log( foo.a ); |
|||
|
|||
}); |
@ -0,0 +1,8 @@ |
|||
'use strict'; |
|||
|
|||
var foo = require('foo'); |
|||
var bar = require('bar'); |
|||
|
|||
console.log( bar.a ); |
|||
|
|||
console.log( foo.a ); |
@ -0,0 +1,6 @@ |
|||
import { a } from 'foo'; |
|||
import { a as a$1 } from 'bar'; |
|||
|
|||
console.log( a$1 ); |
|||
|
|||
console.log( a ); |
@ -0,0 +1,8 @@ |
|||
(function (foo,bar) { |
|||
'use strict'; |
|||
|
|||
console.log( bar.a ); |
|||
|
|||
console.log( foo.a ); |
|||
|
|||
}(foo,bar)); |
@ -0,0 +1,11 @@ |
|||
(function (global, factory) { |
|||
typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('foo'), require('bar')) : |
|||
typeof define === 'function' && define.amd ? define(['foo', 'bar'], factory) : |
|||
(factory(global.foo,global.bar)); |
|||
}(this, function (foo,bar) { 'use strict'; |
|||
|
|||
console.log( bar.a ); |
|||
|
|||
console.log( foo.a ); |
|||
|
|||
})); |
@ -0,0 +1,4 @@ |
|||
import { a } from 'foo'; |
|||
import './other.js'; |
|||
|
|||
console.log( a ); |
@ -0,0 +1,3 @@ |
|||
import { a } from 'bar'; |
|||
|
|||
console.log( a ); |
Loading…
Reference in new issue