Skip to content

Commit f169682

Browse files
committed
fix read amd options
1 parent cf7a2f3 commit f169682

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -458,12 +458,12 @@ function createConfig(options, entry, format, writeMeta) {
458458
}
459459

460460
let amd = {};
461-
if (options.amdName) {
462-
amd.id = options.amdName;
461+
if (options['amd-name']) {
462+
amd.id = options['amd-name'];
463463
}
464464

465-
if (options.amdDefine) {
466-
amd.define = options.amdDefine;
465+
if (options['amd-define']) {
466+
amd.define = ['amd-define'];
467467
}
468468

469469
const moduleAliases = options.alias

0 commit comments

Comments
 (0)