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

Update tests #1003

Merged
merged 7 commits into from
Jun 20, 2024
Merged

Update tests #1003

merged 7 commits into from
Jun 20, 2024

Conversation

JLHwung
Copy link
Contributor

@JLHwung JLHwung commented Jul 31, 2023

Please Read the CONTRIBUTING Guidelines
In particular the portion on Commit Message Formatting

Please check if the PR fulfills these requirements

  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes: Migrate tests from callback to promise style.
  • Other... Please describe:

Does this PR introduce a breaking change?

  • Yes
  • No

Other information: In preparation to the ESM migration, this PR migrates current tests from callback style to promise styles. We also add Node 20 to the CI matrix.

@JLHwung JLHwung mentioned this pull request Jul 31, 2023
11 tasks
babel-loader 9 only supports webpack 5
In webpack 5.0.0, the mapObj.sources are

[
  'webpack://babel-loader/./test/fixtures/basic.js',
  'webpack://babel-loader/./test/fixtures/constant.js',
  'webpack://babel-loader/./test/fixtures/import.js',
  'webpack://babel-loader/webpack/bootstrap',
  'webpack://babel-loader/webpack/startup'
]

In later versions the `'webpack://babel-loader/./test/fixtures/basic.js'` is moved after webpack bootstrap, causing different indices across different webpack versions.
Copy link
Member

@nicolo-ribaudo nicolo-ribaudo left a comment

Choose a reason for hiding this comment

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

Does webpack support ESM loaders?

@JLHwung
Copy link
Contributor Author

JLHwung commented Jun 19, 2024

Yes, webpack 5.80.0 introduced ESM loader support, see #1002.

@JLHwung JLHwung merged commit c5df50c into main Jun 20, 2024
20 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.

3 participants