Skip to content

Commit cf7a2f3

Browse files
hanaidevelopit
andauthored
Update src/index.js
Co-authored-by: Jason Miller <[email protected]>
1 parent da36404 commit cf7a2f3

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['amd.id']) {
462-
amd.id = options['amd.id'];
461+
if (options.amdName) {
462+
amd.id = options.amdName;
463463
}
464464

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

469469
const moduleAliases = options.alias

0 commit comments

Comments
 (0)