-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
113b92a
commit a6e60e4
Showing
151 changed files
with
4,436 additions
and
7,358 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
/.yarn/** | ||
/**/node_modules | ||
/**/*.bundle.* | ||
/**/*.chunk.* | ||
/**/*.hot-update.* | ||
/packages/inferno/** | ||
/packages/tgui/public/shim-*.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 |
---|---|---|
|
@@ -12,3 +12,4 @@ rules: | |
selfClosing: after-props, | ||
nonEmpty: after-props, | ||
}] | ||
react/display-name: error |
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
Large diffs are not rendered by default.
Oops, something went wrong.
This file was deleted.
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,37 @@ | ||
/** | ||
* @file | ||
* @copyright 2020 Aleksej Komarov | ||
* @license MIT | ||
*/ | ||
|
||
const createBabelConfig = options => { | ||
const { mode, presets = [], plugins = [] } = options; | ||
return { | ||
presets: [ | ||
['@babel/preset-env', { | ||
modules: 'commonjs', | ||
useBuiltIns: 'entry', | ||
corejs: '3.8', | ||
spec: false, | ||
loose: true, | ||
targets: [], | ||
}], | ||
...presets, | ||
], | ||
plugins: [ | ||
'@babel/plugin-transform-jscript', | ||
'babel-plugin-inferno', | ||
'babel-plugin-transform-remove-console', | ||
'common/string.babel-plugin.cjs', | ||
...plugins, | ||
], | ||
}; | ||
}; | ||
|
||
module.exports = (api) => { | ||
api.cache(true); | ||
const mode = process.env.NODE_ENV; | ||
return createBabelConfig({ mode }); | ||
}; | ||
|
||
module.exports.createBabelConfig = createBabelConfig; |
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.