Skip to content

ESMビルドの追加 #200

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

Merged
merged 1 commit into from
Jun 9, 2023
Merged

Conversation

taisukef
Copy link
Contributor

@taisukef taisukef commented Jun 8, 2023

DenoやブラウザからESモジュールとして使える main-es.js ビルドオプションを追加しました
今までの Node用、ブラウザ用には影響ありません

DenoやブラウザからESモジュールとして使える main-es.js ビルドオプションを追加
@kamataryo kamataryo self-requested a review June 9, 2023 00:46
@kamataryo
Copy link
Contributor

@taisukef 良いですね!ありがとうございます!

@kamataryo kamataryo merged commit a091449 into geolonia:master Jun 9, 2023
@taisukef
Copy link
Contributor Author

taisukef commented Jun 9, 2023

マージ、ありがとうございます!!

使い方へのドキュメント追記案はこちらです

ESモジュールとして使う(ブラウザ or Deno)

import { normalize } from "https://code4fukui.github.io/normalize-japanese-addresses/dist/main-es.js";

const result = await normalize('北海道札幌市西区24-2-2-3-3');
console.log(result);

https://github.com/code4fukui/normalize-japanese-addresses

@taisukef
Copy link
Contributor Author

taisukef commented Jun 9, 2023

ESモジュールを使ったブラウザ上での使用例はこちら
https://code4fukui.github.io/normalize-japanese-addresses/

@taisukef
Copy link
Contributor Author

taisukef commented Jun 9, 2023

GitHub PagesによるESモジュール提供もご検討ください
#204

@kamataryo
Copy link
Contributor

@taisukef こちらの機能、バージョン 2.8.0 としてリリースしました!
取り急ぎお知らせまで。

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.

2 participants