Skip to content

Commit

Permalink
fix: remove moduleId from rollup bundle options (#444)
Browse files Browse the repository at this point in the history
Required change for rollup 0.53
  • Loading branch information
dherges authored Dec 25, 2017
1 parent da7f073 commit da332d2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/lib/steps/rollup.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { externalModuleIdStrategy, umdModuleIdStrategy } from './rollup';

describe('rollup', () => {

describe(externalModuleIdStrategy.name, () => {
describe(`externalModuleIdStrategy`, () => {
it(`should return 'false' paths starting with '.'`, () => {
expect(externalModuleIdStrategy('./foo/bar')).to.be.false;
});
Expand Down Expand Up @@ -34,7 +34,7 @@ describe('rollup', () => {

});

describe(umdModuleIdStrategy.name, () => {
describe(`umdModuleIdStrategy`, () => {
it(`should map 'rxjs/add/observable/bindCallback' to 'Rx.Observable'`, () => {
expect(umdModuleIdStrategy('rxjs/add/observable/bindCallback')).to.equal('Rx.Observable');
});
Expand Down
2 changes: 0 additions & 2 deletions src/lib/steps/rollup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,6 @@ export async function rollup(opts: RollupOptions): Promise<void> {

// Output the bundle to disk
await bundle.write({
// Keep the moduleId empty because we don't want to force developers to a specific moduleId.
moduleId: '',
name: `${opts.moduleName}`,
file: opts.dest,
format: opts.format,
Expand Down

0 comments on commit da332d2

Please sign in to comment.