mirror of https://github.com/lukechilds/rollup.git
Rich-Harris
9 years ago
7 changed files with 27 additions and 14 deletions
@ -1,9 +1,9 @@ |
|||
define(['acorn'], function (acorn) { 'use strict'; |
|||
|
|||
function parse(source) { |
|||
function parse$1(source) { |
|||
return acorn.parse(source, { ecmaVersion: 6 }); |
|||
} |
|||
|
|||
console.log(parse('foo')); |
|||
console.log(parse$1('foo')); |
|||
|
|||
}); |
|||
}); |
|||
|
@ -1,7 +1,7 @@ |
|||
import { parse } from 'acorn'; |
|||
|
|||
function parse$$(source) { |
|||
function parse$1(source) { |
|||
return parse(source, { ecmaVersion: 6 }); |
|||
} |
|||
|
|||
console.log(parse$$('foo')); |
|||
console.log(parse$1('foo')); |
|||
|
@ -1,10 +1,10 @@ |
|||
(function (acorn) { |
|||
'use strict'; |
|||
|
|||
function parse(source) { |
|||
function parse$1(source) { |
|||
return acorn.parse(source, { ecmaVersion: 6 }); |
|||
} |
|||
|
|||
console.log(parse('foo')); |
|||
console.log(parse$1('foo')); |
|||
|
|||
}(acorn)); |
|||
}(acorn)); |
|||
|
Loading…
Reference in new issue