CopyPastor

Detecting plagiarism made easy.

Score: 0.8805860586815479; Reported for: String similarity Open both answers

Possible Plagiarism

Plagiarized on 2022-06-06
by yanir midler

Original Post

Original - Posted on 2021-11-11
by fabpico



            
Present in both answers; Present only in the new answer; Present only in the old answer;

I was able to import files outside of src/ by "copying" the outside files with file: as local dependency.
"dependencies": { "@my-project/outside-dist": "file:./../../../../dist". }
then
import {FooComponent} from "@my-project/outside-dist/components";
No `eject` or `react-app-rewired` or `other 3rd-party` solution was needed.
I was able to import files outside of `src/` by "copying" the outside files with `file:` as local dependency. ``` "dependencies": { "@my-project/outside-dist": "file:./../../../../dist". } ``` then ``` import {FooComponent} from "@my-project/outside-dist/components"; ```
No `eject` or `react-app-rewired` or other 3rd-party solution was needed.

        
Present in both answers; Present only in the new answer; Present only in the old answer;