mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-21 15:26:16 -04:00
use std/esm to make chef compatible with cjs projects. Remove webpack work for node
This commit is contained in:
parent
897dc0fb97
commit
e4d98eba6b
6 changed files with 27 additions and 54 deletions
13
src/node/cjs.js
Normal file
13
src/node/cjs.js
Normal file
|
@ -0,0 +1,13 @@
|
|||
/**
|
||||
* Export the main ESM module as CommonJS
|
||||
*
|
||||
*
|
||||
* @author d98762656 [d98762625@gmail.com]
|
||||
* @copyright Crown Copyright 2019
|
||||
* @license Apache-2.0
|
||||
*/
|
||||
|
||||
/*eslint no-global-assign: ["off"] */
|
||||
require = require("esm")(module);
|
||||
module.exports = require("./index.mjs");
|
||||
module.exports.File = require("./File.mjs");
|
Loading…
Add table
Add a link
Reference in a new issue