-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add webpack tests #106
add webpack tests #106
Conversation
easingthemes
commented
Dec 19, 2023
- Add Webpack tests
- fix missing/deprecated babel lugin
…d into feature/webpack-tests
// extend log to proper say what file is running | ||
module.exports = (config) => { | ||
// checking all entries at this configuration | ||
const entry = generateEntries(config); | ||
return new Promise((r) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The only change here is wrapping the task to Promise.
if (config && config.general && config.general.watch) { | ||
try { | ||
log(__filename, 'Watcher Sass / autoprefixer running...', '', 'info'); | ||
return new Promise((resolve) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The only change here is wrapping the task to Promise.
) | ||
); | ||
module.exports = async function renderStyles(file, dest, config) { | ||
return new Promise((resolve) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The only change here is wrapping the task to Promise.
@@ -41,7 +41,7 @@ | |||
"@babel/plugin-transform-runtime": "^7.23.2", | |||
"@babel/preset-env": "^7.23.2", | |||
"autoprefixer": "^10.4.16", | |||
"babel-loader": "^9.1.3", | |||
"babel-loader": "9.1.2", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Latest version has a bug: babel/babel-loader#1015
@@ -7,7 +7,7 @@ module.exports = { | |||
loader: 'babel-loader', | |||
options: { | |||
presets: [['@babel/preset-env', { useBuiltIns: 'usage', corejs: 3 }]], | |||
plugins: ['@babel/plugin-transform-runtime', '@babel/plugin-proposal-object-rest-spread'] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
plugin is deprecated