We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
export function add(a: number, b: number) { return a + b; }
function add(a, b) { return a + b; } export { add };
If we use eval in a function
eval
export function add(a: number, b: number) { return a + b; } export function evalFunc() { return eval('1'); }
// The require scope var __webpack_require__ = {}; /************************************************************************/ // webpack/runtime/define_property_getters (()=>{ __webpack_require__.d = function(exports, definition) { for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) Object.defineProperty(exports, key, { enumerable: true, get: definition[key] }); }; })(); // webpack/runtime/has_own_property (()=>{ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }; })(); // webpack/runtime/make_namespace_object (()=>{ // define __esModule on exports __webpack_require__.r = function(exports) { if ('undefined' != typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); Object.defineProperty(exports, '__esModule', { value: true }); }; })(); /************************************************************************/ var __webpack_exports__ = {}; __webpack_require__.r(__webpack_exports__); __webpack_require__.d(__webpack_exports__, { add: function() { return add; }, evalFunc: function() { return evalFunc; } }); function add(a, b) { return a + b; } function evalFunc() { return eval('1'); }
The text was updated successfully, but these errors were encountered:
Currently, entry module is required to be concatenated, eval will break the premise.
Sorry, something went wrong.
fi3ework
No branches or pull requests
Before
Source
Output
Current
If we use
eval
in a functionSource
Output
The text was updated successfully, but these errors were encountered: