Skip to content

Commit

Permalink
fix output path for loaders
Browse files Browse the repository at this point in the history
  • Loading branch information
lobsterkatie committed Sep 9, 2022
1 parent a0a4078 commit 74dde35
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/nextjs/rollup.npm.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ export default [
packageSpecificConfig: {
plugins: [plugins.makeRemoveMultiLineCommentsPlugin()],
output: {
// Preserve the original file structure (i.e., so that everything is still relative to `src`). (Not entirely
// clear why this is necessary here and not for other entrypoints in this file.)
// Preserve the original file structure (i.e., so that everything is still relative to `src`)
entryFileNames: 'config/templates/[name].js',

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

packageSpecificConfig: {
output: {
// Preserve the original file structure (i.e., so that everything is still relative to `src`)
entryFileNames: 'config/loaders/[name].js',

// make it so Rollup calms down about the fact that we're combining default and named exports
exports: 'named',
},
Expand Down

0 comments on commit 74dde35

Please sign in to comment.