mirror of https://github.com/lukechilds/rollup.git
Rich Harris
9 years ago
8 changed files with 55 additions and 2 deletions
@ -0,0 +1,6 @@ |
|||
module.exports = { |
|||
description: 'computed property keys include declarations of referenced identifiers', |
|||
options: { |
|||
moduleName: 'computedProperties' |
|||
} |
|||
}; |
@ -0,0 +1,9 @@ |
|||
define(['exports'], function (exports) { 'use strict'; |
|||
|
|||
var foo = 'foo'; |
|||
|
|||
var x = {[foo]: 'bar'}; |
|||
|
|||
exports.x = x; |
|||
|
|||
}); |
@ -0,0 +1,7 @@ |
|||
'use strict'; |
|||
|
|||
var foo = 'foo'; |
|||
|
|||
var x = {[foo]: 'bar'}; |
|||
|
|||
exports.x = x; |
@ -0,0 +1,5 @@ |
|||
var foo = 'foo'; |
|||
|
|||
var x = {[foo]: 'bar'}; |
|||
|
|||
export { x }; |
@ -0,0 +1,10 @@ |
|||
(function (exports) { |
|||
'use strict'; |
|||
|
|||
var foo = 'foo'; |
|||
|
|||
var x = {[foo]: 'bar'}; |
|||
|
|||
exports.x = x; |
|||
|
|||
}((this.computedProperties = {}))); |
@ -0,0 +1,13 @@ |
|||
(function (global, factory) { |
|||
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) : |
|||
typeof define === 'function' && define.amd ? define(['exports'], factory) : |
|||
(factory((global.computedProperties = {}))); |
|||
}(this, function (exports) { 'use strict'; |
|||
|
|||
var foo = 'foo'; |
|||
|
|||
var x = {[foo]: 'bar'}; |
|||
|
|||
exports.x = x; |
|||
|
|||
})); |
@ -0,0 +1,3 @@ |
|||
var foo = 'foo'; |
|||
|
|||
export var x = {[foo]: 'bar'}; |
Loading…
Reference in new issue