Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fix read amd options
  • Loading branch information
hanai committed Jun 20, 2020
commit 69628af62ec97f6b86e147d1e3a1ad87cb729b77
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 = options['amd-define'];
}
Comment thread
hanai marked this conversation as resolved.

const moduleAliases = options.alias
Expand Down