Skip to content

Commit bb49880

Browse files
committed
Revert "fix: Retain index files in dist output to match declarations (#1665)"
This reverts commit 32fc4e3.
1 parent 32fc4e3 commit bb49880

File tree

3 files changed

+76
-85
lines changed

3 files changed

+76
-85
lines changed

packages/next-intl/package.json

-1
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,6 @@
136136
"eslint": "^9.11.1",
137137
"eslint-config-molindo": "^8.0.0",
138138
"eslint-plugin-react-compiler": "0.0.0-experimental-8e3b87c-20240822",
139-
"glob": "^11.0.1",
140139
"next": "^14.2.4",
141140
"path-to-regexp": "^6.2.2",
142141
"prettier": "^3.3.3",

packages/next-intl/rollup.config.js

+1-9
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import preserveDirectives from 'rollup-plugin-preserve-directives';
22
import {getBuildConfig} from 'tools';
33
import pkg from './package.json' with {type: 'json'};
4-
import {glob} from 'glob';
54

65
function rewriteBundle(regex, replaceFn) {
76
return {
@@ -31,14 +30,7 @@ export default [
3130
middleware: 'src/middleware.tsx',
3231
routing: 'src/routing.tsx',
3332
plugin: 'src/plugin.tsx',
34-
config: 'src/config.tsx',
35-
36-
// Workaround for https://github.com/rollup/rollup/issues/3916
37-
// See https://x.com/jamannnnnn/status/1880199734280732841
38-
...glob.sync('src/**/index.tsx').reduce((acc, file) => {
39-
acc[file.replace('src/', '').replace('/index.tsx', '/index')] = file;
40-
return acc;
41-
}, {})
33+
config: 'src/config.tsx'
4234
},
4335
external: [
4436
...Object.keys(pkg.dependencies),

0 commit comments

Comments
 (0)