Skip to content

Commit

Permalink
Use .es.js extension for generated modules
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelmeuli committed May 11, 2019
1 parent 9c8bea2 commit ad62603
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"download"
],
"main": "dist/font-picker/font-picker/FontPicker.js",
"module": "dist/font-picker/font-picker/FontPicker.es",
"module": "dist/font-picker/font-picker/FontPicker.es.js",
"types": "dist/font-picker/font-picker/index.d.ts",
"files": [
"dist/"
Expand Down
6 changes: 3 additions & 3 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import fs from "fs";
import postcss from "rollup-plugin-postcss";
import typescript from "rollup-plugin-typescript2";

const EXTENSIONS = [".es", ".es.map", ".js", ".js.map"];
const EXTENSIONS = [".es.js", ".es.js.map", ".js", ".js.map"];
const MANAGER_OUT_TEMP = "./dist/font-manager/FontManager";
const MANAGER_OUT = "./dist/font-manager/font-manager/FontManager";
const PICKER_OUT_TEMP = "./dist/font-picker/FontPicker";
Expand Down Expand Up @@ -46,7 +46,7 @@ export default [
name: "FontManager",
},
{
file: `${MANAGER_OUT_TEMP}.es`,
file: `${MANAGER_OUT_TEMP}.es.js`,
format: "esm",
},
],
Expand All @@ -67,7 +67,7 @@ export default [
name: "FontPicker",
},
{
file: `${PICKER_OUT_TEMP}.es`,
file: `${PICKER_OUT_TEMP}.es.js`,
format: "esm",
},
],
Expand Down

0 comments on commit ad62603

Please sign in to comment.