-
Notifications
You must be signed in to change notification settings - Fork 125
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: build an es5 bundle and move main to es6 (#1480)
- Loading branch information
1 parent
a124ef5
commit 6b0489e
Showing
7 changed files
with
113 additions
and
11 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Server-side rendering and ES5 | ||
name: ES5 support check | ||
|
||
on: | ||
- pull_request | ||
|
@@ -19,8 +19,5 @@ jobs: | |
|
||
- run: pnpm install && pnpm build | ||
|
||
- name: Run es-check to check if our bundle is ES5 compatible | ||
run: npx [email protected] es5 dist/{array,main}.js | ||
|
||
- name: Require module via node | ||
run: cd dist; node -e "require('./main')" | ||
- name: Run es-check to check if our ie11 bundle is ES5 compatible | ||
run: npx [email protected] es5 dist/array.full.es5.js |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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,11 @@ | ||
// a straight copy of the array.full.ts entrypoint, | ||
// but will have different config when passed through rollup | ||
// to allow es5/IE11 support | ||
|
||
// it doesn't include recorder which doesn't support IE11, | ||
// and it doesn't include web-vitals which doesn't support IE11 | ||
|
||
import './surveys' | ||
import './exception-autocapture' | ||
import './tracing-headers' | ||
import './array.no-external' |
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