rsnext/packages/next/build/webpack/plugins/webpack-conformance-plugin/utils/file-utils.ts
Prateek Bhatnagar 16672a4353
Adding conformance checks (#10314)
* adding tests  for rect sync conformance check

* adding test for react sync script conformance check

* reverting yarn lock changes

* adding duplicate polyfill conformance

* bug fixes in dulpicate polyfill conformance check

* adding settings capability to conformance plugin

* removing minification check from server build

* bug fix

* settings for react sync script check
2020-03-02 22:53:18 +01:00

5 lines
144 B
TypeScript

const cwd = process.cwd()
export function getLocalFileName(request: string) {
return request.substr(request.lastIndexOf(cwd) + cwd.length)
}