-
Notifications
You must be signed in to change notification settings - Fork 781
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Demos: Cover all 29 bundler variants in Node.js
Previously only the 5 .cjs.js outputs were tested in Node.js. * Rename .es.js to .es.mjs output, because otherwise `node --import=` will reject it. The rejection error suggest placing `{ type: 'module' }` in package.json, but we can't given the Webpack caveat (see build.mjs). * Use readdirSync(), since 29 is too many to hardcode. We have to know the list of test cases at the top-level, thus run readdirSync() top-level, thus run build.mjs before it, which is ESM and async, thus to import and await it, the test file has to be an ESM file, convert to demos/bundlers.mjs accordingly.
- Loading branch information
Showing
2 changed files
with
39 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters