mirror of
https://github.com/react/react-native.git
synced 2026-09-28 05:13:06 +08:00
Migrate Node.js builtin imports to node: scheme (#57611)
Summary: Pull Request resolved: https://github.com/react/react-native/pull/57611 Directly follows D112733139 (Metro). **Motivation** - New Node builtins are *only* available under the prefix (e.g. `node:sqlite`), as this allows Node to introduce them without ecosystem-breaking changes, so this is the direction of travel and the only choice that'll allow consistency. - Encouraging them and grouping them separately makes it easier to reason about a module's 3rd party dependencies. Changelog: [Internal] Reviewed By: robhogan Differential Revision: D112803684 fbshipit-source-id: 40668d746a7151b3aa4800ff8af997902a18d198
This commit is contained in:
committed by
meta-codesync[bot]
parent
94d208d96f
commit
89300acb9c
@@ -28,10 +28,10 @@ if (isMetaInternal) {
|
||||
}
|
||||
|
||||
const {packager} = require('@electron/packager');
|
||||
const fs = require('fs');
|
||||
const path = require('path');
|
||||
const fs = require('node:fs');
|
||||
const path = require('node:path');
|
||||
const util = require('node:util');
|
||||
const signedsource = require('signedsource');
|
||||
const util = require('util');
|
||||
|
||||
const APP_NAME = 'React Native DevTools';
|
||||
const COMPANY_NAME = 'Meta Platforms Technologies LLC';
|
||||
|
||||
Reference in New Issue
Block a user