-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into combineslices-example
- Loading branch information
Showing
13 changed files
with
528 additions
and
1,606 deletions.
There are no files selected for viewing
10 changes: 8 additions & 2 deletions
10
.github/workflows/size.yml.bak → .github/workflows/size.yml
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,14 +1,20 @@ | ||
name: size | ||
on: [pull_request] | ||
on: | ||
pull_request: | ||
branches: | ||
- master | ||
permissions: | ||
pull-requests: write | ||
jobs: | ||
size: | ||
runs-on: ubuntu-latest | ||
env: | ||
CI_JOB_NUMBER: 1 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: andresz1/size-limit-action@v1 | ||
- uses: EskiMojo14/size-limit-action@v1 | ||
with: | ||
directory: packages/toolkit | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
build_script: build-only | ||
package_manager: yarn |
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,22 @@ | ||
diff --git a/get-config.js b/get-config.js | ||
index 76ebaee5455b2a4bacb986784bd1b53ad89adeb7..1b092e645b258f4a6533ca88b7d36dbcde4eb6de 100644 | ||
--- a/get-config.js | ||
+++ b/get-config.js | ||
@@ -132,7 +132,7 @@ export default async function getConfig(plugins, process, args, pkg) { | ||
} else if (!check.entry) { | ||
if (pkg.packageJson.main) { | ||
processed.files = [ | ||
- require.resolve(join(dirname(pkg.path), pkg.packageJson.main)) | ||
+ import.meta.resolve(join(dirname(pkg.path), pkg.packageJson.main)) | ||
] | ||
} else { | ||
processed.files = [join(dirname(pkg.path), 'index.js')] | ||
@@ -177,7 +177,7 @@ export default async function getConfig(plugins, process, args, pkg) { | ||
for (let i in check.import) { | ||
if (peer.includes(i)) { | ||
check.ignore = check.ignore.filter(j => j !== i) | ||
- imports[require.resolve(i, config.cwd)] = check.import[i] | ||
+ imports[import.meta.resolve(i, config.cwd)] = check.import[i] | ||
} else { | ||
imports[toAbsolute(i, config.cwd)] = check.import[i] | ||
} |
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 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
Oops, something went wrong.