|
@ -1,4 +1,3 @@ |
|
|
import { Promise } from 'sander'; |
|
|
|
|
|
import { parse } from 'acorn'; |
|
|
import { parse } from 'acorn'; |
|
|
import MagicString from 'magic-string'; |
|
|
import MagicString from 'magic-string'; |
|
|
import Statement from './Statement'; |
|
|
import Statement from './Statement'; |
|
@ -7,8 +6,6 @@ import { blank, keys } from './utils/object'; |
|
|
import getLocation from './utils/getLocation'; |
|
|
import getLocation from './utils/getLocation'; |
|
|
import makeLegalIdentifier from './utils/makeLegalIdentifier'; |
|
|
import makeLegalIdentifier from './utils/makeLegalIdentifier'; |
|
|
|
|
|
|
|
|
const emptyPromise = Promise.resolve(); |
|
|
|
|
|
|
|
|
|
|
|
function deconflict ( name, names ) { |
|
|
function deconflict ( name, names ) { |
|
|
while ( name in names ) { |
|
|
while ( name in names ) { |
|
|
name = `_${name}`; |
|
|
name = `_${name}`; |
|
|