-
Notifications
You must be signed in to change notification settings - Fork 318
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix : Handle absolute paths for custom inject source #222
base: feat/abs-paths
Are you sure you want to change the base?
fix : Handle absolute paths for custom inject source #222
Conversation
runtimeInjection.startsWith('./') || | ||
runtimeInjection.startsWith('../') | ||
) { | ||
const absolutePath = path.join(rootDir, runtimeInjection); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think should add a normalize function to remove platform differences.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you mean path.normalize(path.join()) ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* Fix: Validate options passed into the Babel plugin * Add full validation for options with good errors
* Docs: Fix code example typo (facebook#290) * Handle `keyframe` within `defineVars` * Add test * Format * Fix grammar * Update stylex-validation-define-vars-test.js --------- Co-authored-by: k14lb3 <[email protected]>
* Add eslint-plugin package * Add initial test suite * Improve CSS handling and tests * Address some of the comments * Add babel scripts for jsx, flow and ts * Add package diff * Add snapshots and fix nits * Fix rename bug * Add esbuild example app * Fix incorrect loaders * Update package-lock.json * Remove unnecessary file * Fix some nits in example * Add additional style to text fixture * Remove ext from import in example * Address some of the comments * Update package-lock.json * Add missing function call and snapshot * Remove comment * Pluralize function name * Add types * Fix build script * Add docs * Fix tabulation * Retake snapshots * Format prettier * Add more missing types * Run formatter * Fix formatting * Lock dependency and fix import * Disable unused key * Add docs * Update package-lock.json * Update package-lock.json * Add snapshots * Address comments
What changed / motivation ?
Handle absolute paths for custom inject source
checks for absolute and relative path
Linked PR/Issues
Fixes #211
Additional Context
i will move forward with
importSources
once this gets approvedPre-flight checklist
Contribution Guidelines