-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Updated dependencies and added the new swc shared configs (#51)
- Loading branch information
1 parent
f0ec5e9
commit 4f1e57c
Showing
26 changed files
with
1,024 additions
and
1,196 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,6 @@ | ||
import type { Config } from "@swc/core"; | ||
import { defineJestConfig } from "@workleap/swc-configs"; | ||
|
||
export const swcConfig = defineJestConfig({ | ||
react: true | ||
}); | ||
|
||
export const config: Config = { | ||
jsc: { | ||
parser: { | ||
syntax: "typescript", | ||
tsx: true | ||
}, | ||
// The output environment that the code will be compiled for. | ||
target: "es2022", | ||
transform: { | ||
react: { | ||
// Use "react/jsx-runtime". | ||
runtime: "automatic", | ||
// Use the native "Object.assign()" instead of "_extends". | ||
useBuiltins: true | ||
} | ||
}, | ||
// Import shims from an external module rather than inlining them in bundle files to greatly reduce the bundles size. | ||
// Requires to add "@swc/helpers" as a project dependency | ||
externalHelpers: true | ||
}, | ||
module: { | ||
// The output module resolution system that the code will be compiled for. | ||
type: "es6", | ||
// Prevent SWC from exporting the `__esModule` property. | ||
strict: true | ||
} | ||
}; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,3 @@ | ||
import type { Config } from "@swc/core"; | ||
import { defineJestConfig } from "@workleap/swc-configs"; | ||
|
||
export const config: Config = { | ||
jsc: { | ||
parser: { | ||
syntax: "typescript", | ||
tsx: true | ||
}, | ||
// The output environment that the code will be compiled for. | ||
target: "es2022", | ||
// Import shims from an external module rather than inlining them in bundle files to greatly reduce the bundles size. | ||
// Requires to add "@swc/helpers" as a project dependency | ||
externalHelpers: true | ||
}, | ||
module: { | ||
// The output module resolution system that the code will be compiled for. | ||
type: "es6", | ||
// Prevent SWC from exporting the `__esModule` property. | ||
strict: true | ||
} | ||
}; | ||
export const swcConfig = defineJestConfig(); |
Oops, something went wrong.