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

[core] Add exports field to packages #43521

Closed
wants to merge 29 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
1646c6f
Initial commit from POC changes
DiegoAndai Mar 21, 2024
365aaea
Fix @app/next-app build
DiegoAndai Mar 21, 2024
a8a9c75
Refactor exports field flag
DiegoAndai Mar 21, 2024
330c04b
Update mui-material/src/styles/index.d.ts
DiegoAndai Mar 21, 2024
f3f6a46
Refactor build structure check and exports field computation
DiegoAndai Mar 22, 2024
bf84a60
Add `@mui/types` exports field
DiegoAndai Mar 22, 2024
91383ac
Breaking changes guide
DiegoAndai Mar 27, 2024
222eef3
Merge branch 'next' into add-exports-field
DiegoAndai Apr 10, 2024
bee0004
Refactor to add compatibility mode with previous configuration
DiegoAndai Apr 10, 2024
9b37c2a
Add modern export to exports field
DiegoAndai Apr 11, 2024
d7d133d
pnpm dedupe
DiegoAndai Apr 12, 2024
a28200d
pnpm prettier
DiegoAndai Apr 12, 2024
9fe59d8
Update broken link
DiegoAndai Apr 12, 2024
74cb37c
Exclude codemod and docs packages from exports format
DiegoAndai Apr 12, 2024
6bda919
pnpm dedupe
DiegoAndai Apr 12, 2024
6bad76d
Merge branch 'next' into add-exports-field
DiegoAndai Apr 15, 2024
5d0050b
pnpm install / pnpm dedupe
DiegoAndai Apr 15, 2024
35a501e
Merge branch 'next' into add-exports-field
DiegoAndai Apr 15, 2024
90a3325
Change "modern" custom export to "mui-moder"
DiegoAndai Apr 16, 2024
b94b4a6
Make exports field opt-in instead of opt-out
DiegoAndai Apr 16, 2024
6964f8b
Merge branch 'next' into add-exports-field
DiegoAndai Apr 16, 2024
7442410
Remove 'use client' directive from index files
DiegoAndai Apr 18, 2024
fb7a4ff
Exclude material-nextjs from exports format build
DiegoAndai Apr 18, 2024
ca37450
Merge branch 'master' into add-exports-field
DiegoAndai Aug 29, 2024
523b6d3
Remove non-index root file in utils package
DiegoAndai Aug 29, 2024
600f269
Remove unnecessary babel plugin
DiegoAndai Aug 29, 2024
0c07408
pnpm install
DiegoAndai Aug 29, 2024
ea5e991
Comment createModulePackages for testing
DiegoAndai Aug 29, 2024
659a479
Add exports to mui-material-nextjs package
DiegoAndai Aug 29, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Remove unnecessary babel plugin
DiegoAndai committed Aug 29, 2024
commit 600f269fbacb090eb6bb1275528d88f48e844904
6 changes: 1 addition & 5 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -74,7 +74,7 @@ module.exports = function getBabelConfig(api) {
// in webpack config:
api.env(['regressions']);

const outFileExtension = '.js';
const outFileExtension = useESModules ? '.mjs' : '.js';

/** @type {babel.PluginItem[]} */
const plugins = [
@@ -142,10 +142,6 @@ module.exports = function getBabelConfig(api) {
]);
}

if (process.env.MUI_ADD_IMPORT_EXTENSIONS === 'true') {
plugins.push(['babel-plugin-add-import-extension', { extension: useESModules ? 'mjs' : 'js' }]);
}

return {
assumptions: {
noDocumentAll: true,
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -95,7 +95,6 @@
"@googleapis/sheets": "^9.3.0",
"@netlify/functions": "^2.8.1",
"@slack/bolt": "^3.21.1",
"babel-plugin-add-import-extension": "^1.6.0",
"execa": "^9.3.1",
"google-auth-library": "^9.13.0"
},