-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/v2' into wbinnssmith/merge-v2-…
…2022-04-22 * upstream/v2: Register swc error handler (#8032) Correctly emit warnings for unnecessary PostCSS plugins in package.json (#8024) Pass targets for swc/helpers to Rust and only filter them for preset env (#8020)
- Loading branch information
Showing
25 changed files
with
499 additions
and
294 deletions.
There are no files selected for viewing
1 change: 1 addition & 0 deletions
1
packages/core/integration-tests/test/integration/js-export-arrow-support/bar/index.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export {bar} from "./other.js"; |
1 change: 1 addition & 0 deletions
1
packages/core/integration-tests/test/integration/js-export-arrow-support/bar/other.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export const bar = "bar"; |
5 changes: 5 additions & 0 deletions
5
packages/core/integration-tests/test/integration/js-export-arrow-support/index.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import * as helpers from "@swc/helpers"; | ||
import * as bar from "./bar"; | ||
import * as foo from "foo"; | ||
|
||
export default [helpers, bar, foo]; |
1 change: 1 addition & 0 deletions
1
...core/integration-tests/test/integration/js-export-arrow-support/node_modules/foo/index.js
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
1 change: 1 addition & 0 deletions
1
...core/integration-tests/test/integration/js-export-arrow-support/node_modules/foo/other.js
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
4 changes: 4 additions & 0 deletions
4
.../integration-tests/test/integration/js-export-arrow-support/node_modules/foo/package.json
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
3 changes: 3 additions & 0 deletions
3
packages/core/integration-tests/test/integration/js-export-arrow-support/package.json
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,3 @@ | ||
{ | ||
"browserslist": "ie 11" | ||
} |
Empty file.
3 changes: 3 additions & 0 deletions
3
packages/core/integration-tests/test/integration/postcss-modules-config-package/foo.css
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,3 @@ | ||
.foo { | ||
color: #fff; | ||
} |
5 changes: 5 additions & 0 deletions
5
packages/core/integration-tests/test/integration/postcss-modules-config-package/foo.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
const map = require('./foo.css'); | ||
|
||
module.exports = { | ||
foo: map.foo, | ||
}; |
3 changes: 3 additions & 0 deletions
3
packages/core/integration-tests/test/integration/postcss-modules-config-package/index.css
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,3 @@ | ||
body { | ||
background: blue; | ||
} |
6 changes: 6 additions & 0 deletions
6
packages/core/integration-tests/test/integration/postcss-modules-config-package/index.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
require('./index.css'); | ||
var foo = require('./foo'); | ||
|
||
module.exports = function () { | ||
return foo.foo; | ||
}; |
10 changes: 10 additions & 0 deletions
10
packages/core/integration-tests/test/integration/postcss-modules-config-package/package.json
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,10 @@ | ||
{ | ||
"postcss": { | ||
"modules": true, | ||
"plugins": { | ||
"autoprefixer": { | ||
"grid": true | ||
} | ||
} | ||
} | ||
} |
Empty file.
9 changes: 9 additions & 0 deletions
9
packages/core/integration-tests/test/integration/transpilation-invalid/index.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
const Boom = () => { | ||
const littleBoom = ['hello', 'world'] | ||
return <div>{...littleBoom.map(el => el)}</div> | ||
} | ||
class X { | ||
#x(){} | ||
#x(){} | ||
} | ||
console.log(Boom, X); |
6 changes: 6 additions & 0 deletions
6
packages/core/integration-tests/test/integration/transpilation-invalid/package.json
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,6 @@ | ||
{ | ||
"dependencies": { | ||
"react": "^18.1.0" | ||
}, | ||
"browserslist": "ie 11" | ||
} |
Empty file.
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.