Skip to content
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

Merged
merged 4 commits into from
Jan 31, 2024
Merged

add webpack tests #106

merged 4 commits into from
Jan 31, 2024

Conversation

easingthemes
Copy link
Member

  • Add Webpack tests
  • fix missing/deprecated babel lugin

// 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) => {
Copy link
Member Author

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) => {
Copy link
Member Author

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) => {
Copy link
Member Author

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",
Copy link
Member Author

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']
Copy link
Member Author

Choose a reason for hiding this comment

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

plugin is deprecated

@easingthemes easingthemes merged commit 7fe6d61 into main Jan 31, 2024
8 checks passed
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.

None yet

2 participants