Skip to content

Commit

Permalink
preserveModules experiment
Browse files Browse the repository at this point in the history
  • Loading branch information
mynamesleon committed Aug 22, 2024
1 parent d578d9a commit c7c93dd
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 68 deletions.
79 changes: 16 additions & 63 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 3 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "rea11y-easy-form",
"version": "0.3.6",
"version": "0.3.7",
"main": "build/cjs/index.js",
"module": "build/esm/index.js",
"files": [
Expand Down Expand Up @@ -46,7 +46,7 @@
"@babel/core": "^7.25.2",
"@babel/preset-env": "^7.25.3",
"@babel/preset-typescript": "^7.24.7",
"@chromatic-com/storybook": "^1.6.1",
"@chromatic-com/storybook": "^1.7.0",
"@rollup/plugin-commonjs": "^26.0.1",
"@rollup/plugin-node-resolve": "^15.2.3",
"@rollup/plugin-terser": "^0.4.4",
Expand All @@ -66,7 +66,7 @@
"@testing-library/react": "^16.0.0",
"@types/dompurify": "^3.0.5",
"@types/jest": "^29.5.12",
"@types/react": "^18.3.3",
"@types/react": "^18.3.4",
"@types/react-beautiful-dnd": "^13.1.8",
"@types/react-dom": "^18.3.0",
"@types/react-is": "^18.3.0",
Expand All @@ -90,7 +90,6 @@
"rollup-plugin-peer-deps-external": "^2.2.4",
"rollup-plugin-postcss": "^4.0.2",
"rollup-plugin-typescript2": "^0.36.0",
"sass-loader": "^13.3.3",
"storybook": "^8.2.9",
"ts-jest": "^29.2.4",
"typescript": "^5.5.4"
Expand Down
4 changes: 4 additions & 0 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,15 @@ module.exports = {
dir: 'build/cjs',
format: 'cjs',
sourcemap: true,
preserveModules: true,
preserveModulesRoot: 'src',
},
{
dir: 'build/esm',
format: 'esm',
sourcemap: true,
preserveModules: true,
preserveModulesRoot: 'src',
},
],
plugins: [
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"compilerOptions": {
"rootDir": "src",
"target": "es6",
"target": "ESNext",
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"declaration": true,
Expand Down

0 comments on commit c7c93dd

Please sign in to comment.