Skip to content

Commit

Permalink
[charts] Replace ESM extensions by .mjs (#14387)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexfauquette authored Aug 29, 2024
1 parent 60b494d commit 3d767ba
Show file tree
Hide file tree
Showing 15 changed files with 2 additions and 2 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion packages/x-charts-vendor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"./package.json": "./package.json",
"./*": {
"types": "./*.d.ts",
"import": "./es/*.js",
"import": "./es/*.mjs",
"default": "./lib/*.js"
}
},
Expand Down
2 changes: 1 addition & 1 deletion packages/x-charts-vendor/scripts/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ const main = async () => {

// Create library indexes and copy licenses to `lib-vendor.
await Promise.all([
fs.writeFile(path.join(EsmBasePath, `${pkgName}.js`), getEsmIndex(pkg)),
fs.writeFile(path.join(EsmBasePath, `${pkgName}.mjs`), getEsmIndex(pkg)),
fs.writeFile(path.join(CjsBasePath, `${pkgName}.js`), getCjsIndex(pkg)),
fs
.copyFile(path.join(pkgBase, 'LICENSE'), path.join(libVendorPath, 'LICENSE'))
Expand Down

0 comments on commit 3d767ba

Please sign in to comment.