Skip to content

Commit

Permalink
Fix preventAssignment warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Havunen committed Oct 10, 2023
1 parent c7e0559 commit f2da50d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions docs/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ console.log(resolvePkg('inferno'));
// see below for details on the options
const plugins = [
replace({
preventAssignment: true,
'process.env.NODE_ENV': '"production"',
sourcemap: false
}),
Expand Down
7 changes: 4 additions & 3 deletions scripts/fakedom/build.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import {rollup} from "rollup";
import { existsSync, readdirSync, statSync } from "fs";
import commonjsPlugin from "rollup-plugin-commonjs";
import nodeResolvePlugin from "rollup-plugin-node-resolve";
import commonjsPlugin from "@rollup/plugin-commonjs";
import nodeResolvePlugin from "@rollup/plugin-node-resolve";
import { dirname, join, resolve } from "path";
import replace from "rollup-plugin-replace";
import replace from "@rollup/plugin-replace";
import terser from '@rollup/plugin-terser';
import alias from "@rollup/plugin-alias";
import { fileURLToPath } from "url";
Expand All @@ -22,6 +22,7 @@ console.log(resolvePkg('inferno'));
// see below for details on the options
const plugins = [
replace({
preventAssignment: true,
'process.env.NODE_ENV': '"production"',
sourcemap: false
}),
Expand Down
1 change: 1 addition & 0 deletions scripts/rollup/plugins/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ export function createPlugins(version, options) {
);

const replaceValues = {
preventAssignment: true,
'process.env.INFERNO_VERSION': JSON.stringify(options.version)
};

Expand Down

0 comments on commit f2da50d

Please sign in to comment.