-
-
Notifications
You must be signed in to change notification settings - Fork 881
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace webpack with esbuild (#5488)
* Replace webpack with esbuild * Fix some lint issues * Work around some flow type issues * Update github pipeline * Remove code remenant from webpack * Update build scripts, set project type to 'module' * fix ava test This removes ava's broken dependency transpiling using babel. Instead it strips the flow type definitions, and runs the ava tests on native code. Running the code natively also requires explitic extensions on imports, so '.js' is added where necessary. * upgrade deps * tweak some module imports * output as iife as to avoid polluting 'window' * fix issue related to flow type striping * update deps * update deps
- Loading branch information
1 parent
6a952ad
commit 7fd526f
Showing
79 changed files
with
4,738 additions
and
5,510 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,7 @@ | ||
{ | ||
"plugins": [ | ||
'@babel/plugin-proposal-export-namespace-from', | ||
["@babel/plugin-proposal-class-properties", { "loose": true }], | ||
"@babel/plugin-transform-modules-commonjs", | ||
"@babel/plugin-transform-flow-strip-types" | ||
"@babel/plugin-transform-flow-strip-types", | ||
"@babel/plugin-syntax-import-attributes" | ||
], | ||
"sourceMaps": "inline" | ||
} |
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
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
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 was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
/* @flow */ | ||
|
||
export default { | ||
files: [ | ||
// `lib` must be transpiled before tests are executed | ||
'dist/transpiled/**/__tests__/*.js', | ||
], | ||
}; |
Oops, something went wrong.