mirror of
https://github.com/zhigang1992/create-react-app.git
synced 2026-01-12 22:46:30 +08:00
* extra watch options regex to react-dev-utils * fix regex * add test * fix eslint error * include react-dev-utils test in CI script * attempt to fix import error * attempt to fix error on CI * Update .eslintrc
20 lines
413 B
JavaScript
20 lines
413 B
JavaScript
/**
|
|
* Copyright (c) 2015-present, Facebook, Inc.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/
|
|
|
|
'use strict';
|
|
|
|
const path = require('path');
|
|
|
|
module.exports = function ignoredFiles(appSrc) {
|
|
return new RegExp(
|
|
`^(?!${path
|
|
.normalize(appSrc + '/')
|
|
.replace(/[\\]+/g, '/')}).+/node_modules/`,
|
|
'g'
|
|
);
|
|
};
|