Skip to content

Commit

Permalink
feat(perf): use lazy module evaluation
Browse files Browse the repository at this point in the history
  • Loading branch information
thymikee committed Feb 5, 2019
1 parent b2a6359 commit 972bbe3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
8 changes: 7 additions & 1 deletion babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,11 @@ module.exports = {
],
require.resolve('@babel/preset-flow'),
],
plugins: [require.resolve('@babel/plugin-transform-strict-mode')],
plugins: [
require.resolve('@babel/plugin-transform-strict-mode'),
[
require.resolve('@babel/plugin-transform-modules-commonjs'),
{ lazy: true },
],
],
};
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,8 @@
"projects": [
"packages/*"
]
},
"devDependencies": {
"@babel/plugin-transform-modules-commonjs": "^7.2.0"
}
}

0 comments on commit 972bbe3

Please sign in to comment.