Skip to content
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 hot reload for demo example #4252

Merged
merged 1 commit into from
Feb 12, 2020
Merged

Fix hot reload for demo example #4252

merged 1 commit into from
Feb 12, 2020

Conversation

ThieryMichel
Copy link
Contributor

@ThieryMichel ThieryMichel commented Jan 6, 2020

No description provided.

@ThieryMichel ThieryMichel added help wanted WIP Work In Progress labels Jan 6, 2020
@ThieryMichel ThieryMichel changed the title [WIP] enable hot reload for demo in dev enable hot reload for demo in dev Jan 7, 2020
@fzaninotto
Copy link
Member

can't the npm link technique from #4359 work here?

@ThieryMichel
Copy link
Contributor Author

can't the npm link technique from #4359 work here?

Sadly no, the demo use the builded module, and so even linked we still need to build the module. Which is already the case without link.

@ThieryMichel ThieryMichel added RFR Ready For Review and removed WIP Work In Progress help wanted labels Feb 5, 2020
@ThieryMichel
Copy link
Contributor Author

The correct solution was to build the packages in watch mode while launching the demo, lerna does the rest.

@@ -24,7 +24,7 @@
"build": "yarn run build-cjs && yarn run build-esm",
"build-cjs": "rimraf ./lib && tsc",
"build-esm": "rimraf ./esm && tsc --outDir esm --module es2015",
"watch": "rimraf ./lib && tsc --watch"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the demo need the esm package.

@fzaninotto fzaninotto merged commit b1c228f into master Feb 12, 2020
@fzaninotto fzaninotto deleted the demo_dev branch February 12, 2020 08:46
@fzaninotto fzaninotto added this to the 3.2.2 milestone Feb 12, 2020
@fzaninotto fzaninotto changed the title enable hot reload for demo in dev Fix hot reload for demo example Feb 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
RFR Ready For Review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants