source: imaps-frontend/node_modules/@babel/plugin-proposal-private-property-in-object/lib/index.js@ 79a0317

main
Last change on this file since 79a0317 was 79a0317, checked in by stefan toskovski <stefantoska84@…>, 4 days ago

F4 Finalna Verzija

  • Property mode set to 100644
File size: 1.6 KB
RevLine 
[79a0317]1maybeWarn: try {
2 var stackTraceLimit = Error.stackTraceLimit;
3 Error.stackTraceLimit = Infinity;
4 var stack = new Error().stack;
5 Error.stackTraceLimit = stackTraceLimit;
6 if (!stack.includes("babel-preset-react-app")) break maybeWarn;
7
8 // Try this as a fallback, in case it's available in node_modules
9 module.exports = require("@babel/plugin-transform-private-property-in-object");
10
11 setTimeout(console.warn, 2500, `\
12\x1B[0;33mOne of your dependencies, babel-preset-react-app, is importing the
13"@babel/plugin-proposal-private-property-in-object" package without
14declaring it in its dependencies. This is currently working because
15"@babel/plugin-proposal-private-property-in-object" is already in your
16node_modules folder for unrelated reasons, but it \x1B[1mmay break at any time\x1B[0;33m.
17
18babel-preset-react-app is part of the create-react-app project, \x1B[1mwhich
19is not maintianed anymore\x1B[0;33m. It is thus unlikely that this bug will
20ever be fixed. Add "@babel/plugin-proposal-private-property-in-object" to
21your devDependencies to work around this error. This will make this message
22go away.\x1B[0m
23 `);
24
25 return;
26} catch (e) {}
27
28throw new Error(`\
29--- PLACEHOLDER PACKAGE ---
30This @babel/plugin-proposal-private-property-in-object version is not meant to
31be imported. Something is importing
32@babel/plugin-proposal-private-property-in-object without declaring it in its
33dependencies (or devDependencies) in the package.json file.
34Add "@babel/plugin-proposal-private-property-in-object" to your devDependencies
35to work around this error. This will make this message go away.
36`);
Note: See TracBrowser for help on using the repository browser.