Skip to content

Babel 7 and Webpack 4#23

Open
createthis wants to merge 4 commits intoSimonDegraeve:masterfrom
createthis:webpack_4
Open

Babel 7 and Webpack 4#23
createthis wants to merge 4 commits intoSimonDegraeve:masterfrom
createthis:webpack_4

Conversation

@createthis
Copy link

@createthis createthis commented Nov 22, 2019

Babel 7 and Webpack 4, without changing the language to Typescript or anything drastic like that. Resolves #22

const configPath = Path.resolve(process.cwd(), options);
config = require(configPath);
compiler = new Webpack(config);
compiler = Webpack(config);
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a breaking change in Webpack 4. It's no longer a constructor, but a function.

"@babel/node": "^7.2.2",
"@babel/polyfill": "^7.2.5",
"@babel/preset-env": "^7.4.0",
"eslint": "^6.2.2",
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was updated to lower the number of dev related npm audit warnings. There are still a bunch, but this cut the number in half.

"@babel/preset-env": "^7.4.0",
"eslint": "^6.2.2",
"eslint-plugin-babel": "^4.1.2",
"lodash": "^4.17.15"
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same with lodash. Security update.

@createthis createthis changed the title Webpack 4 Babel 7 and Webpack 4 Nov 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update to Babel 7 and Webpack 4

1 participant