-
Notifications
You must be signed in to change notification settings - Fork 56
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
chore(dev-mashup): Fix broken yarn start #893
Conversation
Could you clean your commits a bit, please? |
@@ -2,7 +2,7 @@ | |||
"name": "local-mashup", | |||
"version": "1.0.0", | |||
"description": "Simple local mashup", | |||
"main": "index.html", | |||
"main": "index.js", |
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.
Do you know why the main is needed? I do not find the main section in https://github.com/qlik-oss/nebula.js/blob/master/commands/create/templates/mashup/_package.json.
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.
It's for npm or for the compiler/build tool to know which file is the entry point of the application. So no real use for it in this case. We could also remove it completely but it will still default to index.js
which is why I decided to keep it (no strong opinion about it though).
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.
Very good to know. Then it is fine to keep it.
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.
There are too many unneeded commits that can be rebased, otherwise looks nice.
Motivation
With parcel v.2 we need to explicitly specify type="module" for
<script>
tags and cannot specify browser, module, main with an.html
extension (parcel will throw an error).Reference: https://parceljs.org/blog/rc0/#improved-library-builds
Requirements checklist
yarn spec
OR
When build and tests have passed: