Skip to content

Commit

Permalink
Update rollup.config.js
Browse files Browse the repository at this point in the history
  • Loading branch information
mediv0 committed Feb 25, 2021
1 parent 932fd85 commit 73c288e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions build/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,10 @@ function createEntry(config) {

c.external.push(/@babel\/runtime/);

c.plugins.push(replace({
'process.env.NODE_ENV': JSON.stringify('production'),
}))

if (config.format === "iife" || config.format === "umd") {
c.output.name = c.output.name || "validator";
}
Expand All @@ -105,10 +109,6 @@ function createEntry(config) {
);
}

c.plugins.push(replace({
'process.env.NODE_ENV': JSON.stringify('production'),
}))

c.plugins.push(
resolve({
extensions: [".js", ".jsx", ".ts", ".tsx", ".vue"]
Expand Down

0 comments on commit 73c288e

Please sign in to comment.