-
Notifications
You must be signed in to change notification settings - Fork 10
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
rollup周りのエラー対応 #426
Conversation
✔️ 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/ |
"@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", |
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.
なるべく公式プラグインを利用するようにした
], | ||
}, | ||
}), | ||
typescript({ tsconfig: "./tsconfig.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.
明示的に書かないとtsconfig.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.
へー
"outDir": "dist", | ||
"declaration": true, | ||
"declarationDir": ".", |
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.
今まではrollup-plugin-typescript2
側で書かれていたtsconfig.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.
LGTM 👍
フォロー助かりました!
最新のバージョンは利用できない状態になっている。
原因は
rollup
がうまく動いていないため。やったこと
rollup
及びそのプラグイン周りのアップデートrollup.config.js
の調整検証方法
$yarn build
でバンドルするtestEnv/
でページが表示できるか確認