UNPKG

@mendix/pluggable-widgets-tools

Version:
14 lines (11 loc) 453 B
const path = require("path"); /** * This is necessary for `packages/pluggableWidgets/maps-web/src/components/__tests__` since we * make use of inline `require` statements for the leaflet icon images, but do not care about * the actual images themselves in the test environment. */ module.exports = { process(_src, filename, _config, _options) { return { code: `module.exports = ${JSON.stringify(path.basename(filename))};` }; } };