|
Last change
on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 12 days ago |
|
Fix frontend appearance
|
-
Property mode
set to
100644
|
|
File size:
740 bytes
|
| Line | |
|---|
| 1 | /**
|
|---|
| 2 | * Copyright (c) 2015-present, Facebook, Inc.
|
|---|
| 3 | *
|
|---|
| 4 | * This source code is licensed under the MIT license found in the
|
|---|
| 5 | * LICENSE file in the root directory of this source tree.
|
|---|
| 6 | */
|
|---|
| 7 | 'use strict';
|
|---|
| 8 |
|
|---|
| 9 | const create = require('./create');
|
|---|
| 10 |
|
|---|
| 11 | module.exports = function (api, opts) {
|
|---|
| 12 | // This is similar to how `env` works in Babel:
|
|---|
| 13 | // https://babeljs.io/docs/usage/babelrc/#env-option
|
|---|
| 14 | // We are not using `env` because it’s ignored in versions > babel-core@6.10.4:
|
|---|
| 15 | // https://github.com/babel/babel/issues/4539
|
|---|
| 16 | // https://github.com/facebook/create-react-app/issues/720
|
|---|
| 17 | // It’s also nice that we can enforce `NODE_ENV` being specified.
|
|---|
| 18 | const env = process.env.BABEL_ENV || process.env.NODE_ENV;
|
|---|
| 19 | return create(api, opts, env);
|
|---|
| 20 | };
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.