UNPKG

@gasket/plugin-nextjs

Version:
29 lines (28 loc) 971 B
/* eslint-disable no-undefined */ /* DO NOT EDIT OR DELETE THIS FILE */ // Empty module for replacing create.js and webpack-config.js files // These files are build-time only and use Node APIs that don't work in Edge runtime // Export a no-op function so imports still work but don't execute any Node API code /** * No-op hook function for Edge runtime compatibility * @param {...*} args - Arguments passed to the hook * @returns {*} The second argument if multiple args, undefined otherwise */ Object.defineProperty(exports, "__esModule", { value: true }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { enumerable: true, get: all[name] }); } _export(exports, { default: function() { return _default; }, webpackConfig: function() { return noopHook; } }); function noopHook(...args) { return args.length > 1 ? args[1] : undefined; } const _default = noopHook;