UNPKG

@salesforce/design-system-react

Version:

Salesforce Lightning Design System for React

30 lines (22 loc) 1.08 kB
/* Copyright (c) 2015-present, salesforce.com, inc. All rights reserved */ /* Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */ /* eslint-disable import/no-mutable-exports */ import warning from 'warning'; var hasMoved = function hasMovedFunction() {}; if (process.env.NODE_ENV !== 'production') { var hasWarned = {}; hasMoved = function hasMovedFunction(control, _ref) { var oldFileLocation = _ref.oldFileLocation, newFileLocation = _ref.newFileLocation, comment = _ref.comment; var additionalComment = comment ? " ".concat(comment) : ''; if (!hasWarned[control]) { /* eslint-disable max-len */ warning(false, "[Design System React] ".concat(control, " file import path has changed. Old import path was `design-system-react/").concat(oldFileLocation, "`. New import path is `design-system-react/").concat(newFileLocation, "`.").concat(additionalComment)); /* eslint-enable max-len */ hasWarned[control] = true; } }; } export default hasMoved; //# sourceMappingURL=component-has-moved.js.map