question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Create a tool to migrate users to @use

See original GitHub issue

The new module system is on the horizon, and we want to make it as easy as possible for users to migrate to it. Probably the biggest value-add for this migration would be creating a tool that takes a Sass entrypoint and converts it and everything it imports to @use. This would include:

  • Replacing top-level @imports with @uses.
  • Adding new @uses for variables, functions, and mixins that are referred to without explicit imports (including core library functions).
  • Adding namespaces to variable, function, and mixin uses.
  • Replacing overridden variables with with blocks.
  • Replacing nested @imports with @include load-css().
  • Adding namespaces to get-function() calls whose referent can be statically determined, and printing warnings for others.

In order to do this, the migration tool would probably need to partially evaluate the Sass files in order to determine where each variable, mixin, and function was originally defined. It could then use source span information to modify code in-place without disrupting the rest of the stylesheet.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:2
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
jathakcommented, Nov 20, 2019

~ prefixed URLs (as well as URLs resolved relative to load paths) are already excluded from --migrate-deps, so I think this is a bug where we’re trying to rename a member in a file that we’d never migrate. You’re not using --remove-prefix, so I’m guessing this has something to do with pseudoprivate members. Can you open an issue in the migrator repo?

0reactions
nex3commented, Jan 16, 2020

I think we can safely close this one out.

Read more comments on GitHub >

github_iconTop Results From Across the Web

ForensiT Domain Migration
User Profile Wizard is an easy-to-use migration tool that means this doesn't need to happen – you can simply migrate your original profile...
Read more >
Active Directory Migration Tool (ADMT): Your Essential Guide
The Active Directory Migration Tool is a Microsoft tool that makes it easy to move AD objects to other domains or forests.
Read more >
User State Migration Tool (USMT) Overview (Windows 10)
You can use User State Migration Tool (USMT) 10.0 to streamline and simplify user state migration during large deployments of Windows ...
Read more >
Creating a project and migrating users in On Demand Migration
See how to migrate SharePoint content using On Demand Migration. Keeping end users sharing is essential. In this brief demo, technical product manager...
Read more >
11 Best Data Migration Tools for 2022 - Learn | Hevo
Accessibility: SnapLogic is a browser-based tool that allows users to access Data Migration irrespective of the operating system. SnapLogic ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found