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(babel): API side include babel runtime as deps | Bump babel #3220

Merged
merged 5 commits into from
Aug 9, 2021

Conversation

dac09
Copy link
Collaborator

@dac09 dac09 commented Aug 9, 2021

Fixes #3216
Close this after too https://github.com/redwoodjs/redwoodjs.com/issues/766

What does it do?

A: Adds babel/runtime to api package deps
We're using @babel/plugin-transform-runtime as a framework dep, used at BUILD time.

In the docs

all of the helpers will reference the module @babel/runtime to avoid duplication across your compiled output. The runtime will be compiled into your build.

but in a small section they also mention:

The transformation plugin is typically used only in development, but the runtime itself will be depended on by your deployed code. See the examples below for more details.

B: Updates all babel deps to latest patch/minor
(introduces typescript const enum support!!)

C: Removes clerk auth from api package dep
Re-organises how clerk sdk gets imported, so that we don't need to have it as a redwoodjs/api dependency

@@ -10,7 +10,7 @@
"types": "./dist/index.d.ts",
"license": "MIT",
"dependencies": {
"@clerk/clerk-sdk-node": "^0.5.1",
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This must have been an accident right @dthyresson

@dac09 dac09 self-assigned this Aug 9, 2021
@dac09 dac09 requested a review from dthyresson August 9, 2021 12:22
@thedavidprice thedavidprice added this to the next-release-priority milestone Aug 9, 2021
Copy link
Contributor

@thedavidprice thedavidprice left a comment

Choose a reason for hiding this comment

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

Looks gtg assuming you and DT sort out the @clerk/clerk-sdk-node dep in api/package.json

@dac09
Copy link
Collaborator Author

dac09 commented Aug 9, 2021

Sweet, yeah will ask DT to take for a spin and fix if there are issues!

@dac09 dac09 merged commit 6f90556 into redwoodjs:main Aug 9, 2021
@dac09 dac09 deleted the fix/babel-runtime-dependency branch August 9, 2021 19:40
dac09 added a commit to dac09/redwood that referenced this pull request Aug 12, 2021
…om-functions-test

* 'main' of github.com:redwoodjs/redwood:
  webpack and misc upgrades (redwoodjs#3235)
  upgrade Prisma v2.29.0 (redwoodjs#3233)
  Fix API sourcemaps (babel+esbuild) for debugging (redwoodjs#3230)
  set canary as default (redwoodjs#3228)
  Fix issue where Clerk client is sometimes unset (redwoodjs#3224)
  Fix: Custom auth provider Private route redirect (redwoodjs#2872)
  fix(babel): API side include babel runtime as deps | Bump babel (redwoodjs#3220)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cannot find module '@babel/runtime-corejs3/core-js/object/define-property'
2 participants