Skip to content

Commit

Permalink
fix: rollup config (pmndrs#1790)
Browse files Browse the repository at this point in the history
  • Loading branch information
dai-shi authored May 4, 2023
1 parent c4e2809 commit faccbd0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ function createESMConfig(input, output) {
output: { file: output, format: 'esm' },
external,
plugins: [
alias(entries.filter((e) => !e.find.test(input))),
alias({ entries: entries.filter((e) => !e.find.test(input)) }),
resolve({ extensions }),
replace({
...(output.endsWith('.js')
Expand Down Expand Up @@ -97,7 +97,7 @@ function createCommonJSConfig(input, output, options) {
},
external,
plugins: [
alias(entries.filter((e) => !e.find.test(input))),
alias({ entries: entries.filter((e) => !e.find.test(input)) }),
resolve({ extensions }),
replace({
'import.meta.env?.MODE': 'process.env.NODE_ENV',
Expand Down Expand Up @@ -133,7 +133,7 @@ function createUMDConfig(input, output, env) {
},
external,
plugins: [
alias(entries.filter((e) => !e.find.test(input))),
alias({ entries: entries.filter((e) => !e.find.test(input)) }),
resolve({ extensions }),
replace({
'import.meta.env?.MODE': JSON.stringify(env),
Expand All @@ -155,7 +155,7 @@ function createSystemConfig(input, output, env) {
},
external,
plugins: [
alias(entries.filter((e) => !e.find.test(input))),
alias({ entries: entries.filter((e) => !e.find.test(input)) }),
resolve({ extensions }),
replace({
'import.meta.env?.MODE': JSON.stringify(env),
Expand Down

0 comments on commit faccbd0

Please sign in to comment.