Skip to content

Commit

Permalink
fix read amd options
Browse files Browse the repository at this point in the history
  • Loading branch information
hanai committed Jun 20, 2020
1 parent cf7a2f3 commit 41ad5b0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -458,12 +458,12 @@ function createConfig(options, entry, format, writeMeta) {
}

let amd = {};
if (options.amdName) {
amd.id = options.amdName;
if (options['amd-name']) {
amd.id = options['amd-name'];
}

if (options.amdDefine) {
amd.define = options.amdDefine;
if (options['amd-define']) {
amd.define = ['amd-define'];
}

const moduleAliases = options.alias
Expand Down

0 comments on commit 41ad5b0

Please sign in to comment.