Skip to content

Commit

Permalink
Fix build script
Browse files Browse the repository at this point in the history
  • Loading branch information
kirillku committed Jun 28, 2021
1 parent 83fe26d commit 7d588ea
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { terser } from "rollup-plugin-terser";

import pkg from "./package.json";

const extensions = [".ts", ".tsx", ".json"];
const extensions = [".mjs", ".js", ".ts", ".tsx", ".json"];

const isProduction = process.env.NODE_ENV === "production";

Expand All @@ -35,9 +35,7 @@ export default {
],
plugins: [
alias({
entries: {
"~": "./src",
},
entries: { "~": "./src" },
resolve: extensions,
}),
eslint(),
Expand All @@ -46,9 +44,7 @@ export default {
extensions,
exclude: "node_modules/**",
}),
resolve({
extensions,
}),
resolve({ extensions }),
isProduction && strip(),
commonjs(),
isProduction && terser(),
Expand Down

0 comments on commit 7d588ea

Please sign in to comment.