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

rollup周りのエラー対応 #426

Merged
merged 6 commits into from
Aug 12, 2021
Merged

Conversation

youchann
Copy link
Contributor

@youchann youchann commented Aug 12, 2021

image

最新のバージョンは利用できない状態になっている。
原因はrollupがうまく動いていないため。

やったこと

  • rollup及びそのプラグイン周りのアップデート
  • rollup.config.jsの調整

検証方法

  • $yarn buildでバンドルする
  • testEnv/でページが表示できるか確認

@youchann youchann added the bug Something isn't working label Aug 12, 2021
@youchann youchann self-assigned this Aug 12, 2021
@youchann youchann requested a review from a team as a code owner August 12, 2021 02:03
@youchann youchann requested review from ryokosuge and removed request for a team August 12, 2021 02:03
@netlify
Copy link

netlify bot commented Aug 12, 2021

✔️ Deploy Preview for ingred-ui ready!

🔨 Explore the source changes: fda983f

🔍 Inspect the deploy log: https://app.netlify.com/sites/ingred-ui/deploys/611481626af05c0007af4206

😎 Browse the preview: https://deploy-preview-426--ingred-ui.netlify.app/

Comment on lines +42 to +45
"@rollup/plugin-commonjs": "20.0.0",
"@rollup/plugin-node-resolve": "13.0.4",
"@rollup/plugin-typescript": "8.2.5",
"@rollup/plugin-url": "6.1.0",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

なるべく公式プラグインを利用するようにした

],
},
}),
typescript({ tsconfig: "./tsconfig.json" }),
Copy link
Contributor Author

Choose a reason for hiding this comment

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

明示的に書かないとtsconfig.jsonをみてくれなさそうだった

Copy link
Contributor

Choose a reason for hiding this comment

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

へー

Comment on lines +3 to +5
"outDir": "dist",
"declaration": true,
"declarationDir": ".",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

今まではrollup-plugin-typescript2側で書かれていたtsconfig.jsonを用いられていたけど、今後は当ファイルを用いてコンパイルされる。
なので調整した。

Copy link
Contributor

@ryokosuge ryokosuge left a comment

Choose a reason for hiding this comment

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

LGTM 👍
フォロー助かりました!

@ryokosuge ryokosuge merged commit 663aa53 into master Aug 12, 2021
@ryokosuge ryokosuge deleted the fix-error-inspect-of-undefined branch August 12, 2021 04:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants