Browse Source

remove superfluous helper

semi-dynamic-namespace-imports
Rich-Harris 9 years ago
parent
commit
98e60efa30
  1. 5
      src/Bundle.js
  2. 3
      src/utils/normalizePlatform.js

5
src/Bundle.js

@ -9,7 +9,6 @@ import ensureArray from './utils/ensureArray.js';
import { load, makeOnwarn, resolveId } from './utils/defaults.js';
import getExportMode from './utils/getExportMode.js';
import getIndentString from './utils/getIndentString.js';
import { unixizePath } from './utils/normalizePlatform.js';
import { mapSequence } from './utils/promise.js';
import transform from './utils/transform.js';
import transformBundle from './utils/transformBundle.js';
@ -35,7 +34,7 @@ export default class Bundle {
}
});
this.entry = unixizePath( options.entry );
this.entry = normalize( options.entry );
this.entryId = null;
this.entryModule = null;
@ -343,7 +342,7 @@ export default class Bundle {
map = magicString.generateMap({ file, includeContent: true });
}
map.sources = map.sources.map( unixizePath );
map.sources = map.sources.map( normalize );
}
return { code, map };

3
src/utils/normalizePlatform.js

@ -1,3 +0,0 @@
export function unixizePath ( path ) {
return path.split( /[\/\\]/ ).join( '/' );
}
Loading…
Cancel
Save