Add export map, use mjs extension

This commit is contained in:
Sidharth Vinod
2021-10-01 19:19:32 +05:30
parent cac354caa9
commit b500a312b6
2 changed files with 9 additions and 2 deletions

View File

@@ -12,6 +12,6 @@ esmConfig.output.library = {
esmConfig.experiments = {
outputModule: true,
};
esmConfig.output.filename = '[name].esm.min.js';
esmConfig.output.filename = '[name].esm.min.mjs';
export default [umdConfig, esmConfig];