Skip to content

Commit

Permalink
Added babel-plugin-lodash and fixed a path issue in dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
julienben committed Oct 10, 2018
1 parent 4499a33 commit 1be92b0
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 3 deletions.
1 change: 1 addition & 0 deletions babel.config.js
Expand Up @@ -9,6 +9,7 @@ module.exports = {
'@babel/preset-react',
],
plugins: [
'lodash',
'styled-components',
'@babel/plugin-proposal-class-properties',
'@babel/plugin-syntax-dynamic-import',
Expand Down
6 changes: 3 additions & 3 deletions internals/scripts/dependencies.js
Expand Up @@ -11,11 +11,11 @@ const exists = fs.existsSync;
const writeFile = fs.writeFileSync;

const defaults = require('lodash/defaultsDeep');
const pkg = require(path.join(process.cwd(), 'package.json'));
const pkg = require(path.resolve(process.cwd(), 'package.json'));
const config = require('../config');
const dllConfig = defaults(pkg.dllPlugin, config.dllPlugin.defaults);
const outputPath = path.join(process.cwd(), dllConfig.path);
const dllManifestPath = path.join(outputPath, 'package.json');
const outputPath = path.resolve(process.cwd(), dllConfig.path);
const dllManifestPath = path.resolve(outputPath, 'package.json');

/**
* I use node_modules/react-boilerplate-dlls by default just because
Expand Down
19 changes: 19 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Expand Up @@ -127,6 +127,7 @@
"babel-eslint": "10.0.1",
"babel-loader": "8.0.4",
"babel-plugin-dynamic-import-node": "2.2.0",
"babel-plugin-lodash": "3.3.4",
"babel-plugin-react-intl": "3.0.1",
"babel-plugin-react-transform": "3.0.0",
"babel-plugin-styled-components": "1.8.0",
Expand Down

0 comments on commit 1be92b0

Please sign in to comment.