Skip to content

Commit 2ee8eed

Browse files
committed
Use microbundle instead of microbundle-crl
1 parent dc01420 commit 2ee8eed

File tree

3 files changed

+800
-460
lines changed

3 files changed

+800
-460
lines changed

package.json

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,25 @@
11
{
22
"name": "react-segmenter",
3+
"type": "module",
34
"version": "1.0.0",
45
"description": "A React component that utilizes Intl.Segmenter to control line breaks in Japanese text.",
56
"author": "NotFounds",
67
"license": "MIT",
78
"repository": "NotFounds/react-segmenter",
89
"main": "dist/index.js",
9-
"module": "dist/index.modern.js",
10+
"module": "dist/index.module.js",
11+
"unpkg": "dist/index.umd.js",
1012
"source": "src/index.tsx",
13+
"exports": {
14+
"require": "./dist/index.cjs",
15+
"default": "./dist/index.modern.js"
16+
},
1117
"engines": {
12-
"node": ">=10"
18+
"node": ">=18"
1319
},
1420
"scripts": {
15-
"build": "microbundle-crl --no-compress --format modern,cjs",
16-
"start": "microbundle-crl watch --no-compress --format modern,cjs",
21+
"build": "microbundle",
22+
"dev": "microbundle watch",
1723
"prepare": "run-s build",
1824
"test": "run-s test:unit test:lint test:build",
1925
"test:build": "run-s build",
@@ -36,7 +42,7 @@
3642
"@types/react-dom": "^16.9.7 || ^18.0.0",
3743
"@typescript-eslint/eslint-plugin": "^2.26.0 || ^5.0.0",
3844
"@typescript-eslint/parser": "^2.26.0 || ^5.0.0",
39-
"microbundle-crl": "^0.13.10",
45+
"microbundle": "^0.15.1",
4046
"@babel/eslint-parser": "^10.0.3 || ^7.11.0",
4147
"cross-env": "^7.0.2",
4248
"eslint": "^6.8.0",

tsconfig.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"compilerOptions": {
33
"outDir": "dist",
44
"module": "esnext",
5-
"lib": ["dom", "esnext"],
5+
"lib": ["dom", "esnext", "es2022.intl"],
66
"moduleResolution": "node",
77
"jsx": "react",
88
"sourceMap": true,
@@ -12,7 +12,6 @@
1212
"noImplicitThis": true,
1313
"noImplicitAny": true,
1414
"strictNullChecks": true,
15-
"suppressImplicitAnyIndexErrors": true,
1615
"noUnusedLocals": true,
1716
"noUnusedParameters": true,
1817
"allowSyntheticDefaultImports": true

0 commit comments

Comments
 (0)