Skip to content

Commit 74dde35

Browse files
committed
fix output path for loaders
1 parent a0a4078 commit 74dde35

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

packages/nextjs/rollup.npm.config.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@ export default [
1919
packageSpecificConfig: {
2020
plugins: [plugins.makeRemoveMultiLineCommentsPlugin()],
2121
output: {
22-
// Preserve the original file structure (i.e., so that everything is still relative to `src`). (Not entirely
23-
// clear why this is necessary here and not for other entrypoints in this file.)
22+
// Preserve the original file structure (i.e., so that everything is still relative to `src`)
2423
entryFileNames: 'config/templates/[name].js',
2524

2625
// this is going to be add-on code, so it doesn't need the trappings of a full module (and in fact actively
@@ -43,6 +42,9 @@ export default [
4342

4443
packageSpecificConfig: {
4544
output: {
45+
// Preserve the original file structure (i.e., so that everything is still relative to `src`)
46+
entryFileNames: 'config/loaders/[name].js',
47+
4648
// make it so Rollup calms down about the fact that we're combining default and named exports
4749
exports: 'named',
4850
},

0 commit comments

Comments
 (0)