mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-24 08:46:19 -04:00
Switched to val-loader and compiling MetaConfig
This commit is contained in:
parent
cb6708c02e
commit
c93edec55b
12 changed files with 226 additions and 762 deletions
|
@ -1,6 +1,3 @@
|
|||
import "babel-regenerator-runtime";
|
||||
import Utils from "../Utils.js";
|
||||
|
||||
import Base from "../operations/Base.js";
|
||||
import Base58 from "../operations/Base58.js";
|
||||
import Base64 from "../operations/Base64.js";
|
||||
|
@ -3572,10 +3569,19 @@ const OperationConfig = {
|
|||
},
|
||||
};
|
||||
|
||||
export default OperationConfig;
|
||||
|
||||
/**
|
||||
* Also export OperationConfig in value-loader format allowing access to metadata
|
||||
* about operations without having to import all the dependencies.
|
||||
* Exports the OperationConfig JSON object in val-loader format so that it can be loaded
|
||||
* into the app without also importing all the dependencies.
|
||||
*
|
||||
* See https://github.com/webpack-contrib/val-loader
|
||||
*
|
||||
* @returns {Object}
|
||||
*/
|
||||
export const conf = "module.exports = " + JSON.stringify(OperationConfig) + ";";
|
||||
function valExport() {
|
||||
return {
|
||||
code: "module.exports = " + JSON.stringify(OperationConfig) + ";"
|
||||
};
|
||||
}
|
||||
|
||||
export default valExport;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue