-
Notifications
You must be signed in to change notification settings - Fork 39
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 package exports #251
Fix package exports #251
Conversation
✅ Deploy Preview for vue-stripe-menu ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
Fixes #250 |
@@ -13,7 +13,9 @@ | |||
".": { | |||
"import": "./dist/vue-stripe-menu.es.js", | |||
"require": "./dist/vue-stripe-menu.umd.js" | |||
} | |||
}, | |||
"./css": "./dist/vue-stripe-menu.css", |
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.
Thanks for the PR.
I think we should leave current import for backward compatibility.
These imports should work just as they did:
vue-stripe-menu/src/scss/index
vue-stripe-menu/dist/vue-stripe-menu.css
etc
But I don't really know what it should look like.
{
"./dist/*": "./dist/*",
"./src/*": "./src/*"
}
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 added the two 'legacy' exports (additionally to the new ones)
"./css": "./dist/vue-stripe-menu.css",
"./scss": "./src/scss/index.scss",
"./dist/vue-stripe-menu.css": "./dist/vue-stripe-menu.css",
"./src/scss/index": "./src/scss/index.scss"
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.
"./dist/*": "./dist/*",
"./src/*": "./src/*"
Works too btw, but I guess it's not recommended.
Forgot to change version number to 3.0.0-beta.2 |
The new exports:
So for <script>:
or <style>: