Create a tool to migrate users to @use
See original GitHub issueThe 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
@import
s with@use
s. - Adding new
@use
s 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
@import
s 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:
- Created 5 years ago
- Reactions:2
- Comments:5 (2 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
~
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?I think we can safely close this one out.