Skip to content

Commit

Permalink
Try to revert unwanted changes
Browse files Browse the repository at this point in the history
  • Loading branch information
pyamada-atlassian committed Jul 8, 2024
1 parent ba269a7 commit b045af5
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions flow-typed/npm/@swc/core_v1.x.x.js
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ declare module '@swc/core' {
* presence of the filename.
* - Options like "test", "exclude", and "ignore" require the filename
* for string/RegExp matching.
* - swc.config.js files are loaded relative to the file being compiled.
* - .swcrc files are loaded relative to the file being compiled.
* If this option is omitted, Swc will behave as if swcrc: false has been set.
*/
filename?: string,
Expand Down Expand Up @@ -353,19 +353,19 @@ declare module '@swc/core' {
envName?: string,

/**
* Defaults to searching for a default `swc.config.js` file, but can
* Defaults to searching for a default `.swcrc` file, but can
* be passed the path of any JS or JSON5 config file.
*
*
* NOTE: This option does not affect loading of swc.config.js files,
* so while it may be tempting to do configFile: "./foo/swc.config.js",
* it is not recommended. If the given swc.config.js is loaded via the
* NOTE: This option does not affect loading of .swcrc files,
* so while it may be tempting to do configFile: "./foo/.swcrc",
* it is not recommended. If the given .swcrc is loaded via the
* standard file-relative logic, you'll end up loading the same
* config file twice, merging it with itself. If you are linking
* a specific config file, it is recommended to stick with a
* naming scheme that is independent of the "swcrc" name.
*
* Defaults to `path.resolve(opts.root, "swc.config.js")`
* Defaults to `path.resolve(opts.root, ".swcrc")`
*/
configFile?: string | boolean,

Expand All @@ -374,7 +374,7 @@ declare module '@swc/core' {
*
* A swcrc value passed in the programmatic options will override one set within a configuration file.
*
* Note: swc.config.js files are only loaded if the current "filename" is inside of
* Note: .swcrc files are only loaded if the current "filename" is inside of
* a package that matches one of the "swcrcRoots" packages.
*
*
Expand Down Expand Up @@ -494,7 +494,7 @@ declare module '@swc/core' {
|};
declare export type Swcrc = Config | Config[];
/**
* swc.config.js
* .swcrc
*/
declare export type Config = {|
/**
Expand Down

0 comments on commit b045af5

Please sign in to comment.