UNPKG

rn-web-cli

Version:

React Native for Web

1 lines 1.27 kB
{"version":3,"sources":["node_modules\\react\\lib\\canDefineProperty.js"],"names":["canDefineProperty","process","env","NODE_ENV","Object","defineProperty","get","x","module","exports"],"mappings":";;;;;;;;;;;AAWA;;AAEA,GAAIA,mBAAoB,KAAxB;AACA,GAAIC,QAAQC,GAAR,CAAYC,QAAZ,GAAyB,YAA7B,CAA2C;AACzC,GAAI;;AAEFC,OAAOC,cAAP,CAAsB,EAAtB,CAA0B,GAA1B,CAA+B,CAAEC,IAAK,cAAY,CAAE,CAArB,CAA/B;AACAN,kBAAoB,IAApB;AACD,CAAC,MAAOO,CAAP,CAAU;;AAEX;AACF;;AAEDC,OAAOC,OAAP,CAAiBT,iBAAjB","file":"canDefineProperty.js","sourceRoot":"d:/Work/Office/react-native-on-web/cli/tmpl/project","sourcesContent":["/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n * \n */\n\n'use strict';\n\nvar canDefineProperty = false;\nif (process.env.NODE_ENV !== 'production') {\n try {\n // $FlowFixMe https://github.com/facebook/flow/issues/285\n Object.defineProperty({}, 'x', { get: function () {} });\n canDefineProperty = true;\n } catch (x) {\n // IE will fail on defineProperty\n }\n}\n\nmodule.exports = canDefineProperty;"]}