mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-09-28 21:24:26 +08:00
Info at https://stylelint.io/migration-guide/to-15 Our custom rule needed to be updated to reflect a small change. All changes are separated into patches for ease of review. More work is need for a v16 migration so separating it to reduce risks of breaking. Bug: none Change-Id: I616829fba25b06bf8febe8390074046ad582f531 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6126881 Commit-Queue: Nikolay Vitkov <nvitkov@chromium.org> Reviewed-by: Benedikt Meurer <bmeurer@chromium.org>
import-fresh
Import a module while bypassing the cache
Useful for testing purposes when you need to freshly import a module.
Install
$ npm install import-fresh
Usage
// foo.js
let i = 0;
module.exports = () => ++i;
const importFresh = require('import-fresh');
require('./foo')();
//=> 1
require('./foo')();
//=> 2
importFresh('./foo')();
//=> 1
importFresh('./foo')();
//=> 1
import-fresh for enterprise
Available as part of the Tidelift Subscription.
The maintainers of import-fresh and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. Learn more.
Related
- clear-module - Clear a module from the import cache
- import-from - Import a module from a given path
- import-cwd - Import a module from the current working directory
- import-lazy - Import modules lazily