Skip to content

Commit

Permalink
upgrading yarn lock
Browse files Browse the repository at this point in the history
  • Loading branch information
alexreardon committed Oct 27, 2021
1 parent 4f6020a commit 0eac58e
Show file tree
Hide file tree
Showing 3 changed files with 657 additions and 643 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@
],
"dependencies": {},
"devDependencies": {
"@rollup/plugin-replace": "^3.0.0",
"@rollup/plugin-typescript": "^8.3.0",
"@size-limit/preset-small-lib": "^5.0.4",
"@types/benchmark": "^2.1.1",
"@types/jest": "^27.0.2",
Expand Down Expand Up @@ -70,9 +72,7 @@
"prettier": "2.4.1",
"rimraf": "3.0.2",
"rollup": "^2.57.0",
"rollup-plugin-replace": "^2.2.0",
"rollup-plugin-terser": "^7.0.2",
"rollup-plugin-typescript": "^1.0.1",
"size-limit": "^5.0.4",
"ts-jest": "^27.0.5",
"ts-node": "^10.2.1",
Expand Down
16 changes: 8 additions & 8 deletions rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// @ts-check
import typescript from 'rollup-plugin-typescript';
import replace from 'rollup-plugin-replace';
import typescript from '@rollup/plugin-typescript';
import replace from '@rollup/plugin-replace';
import { terser } from 'rollup-plugin-terser';

const input = 'src/memoize-one.ts';
Expand All @@ -16,8 +16,8 @@ export default [
},
plugins: [
// Setting development env before running other steps
replace({ 'process.env.NODE_ENV': JSON.stringify('development') }),
typescript(),
replace({ 'process.env.NODE_ENV': JSON.stringify('development'), preventAssignment: true }),
typescript({ module: 'ESNext' }),
],
},
// Universal module definition (UMD) build (production)
Expand All @@ -30,8 +30,8 @@ export default [
},
plugins: [
// Setting production env before running other steps
replace({ 'process.env.NODE_ENV': JSON.stringify('production') }),
typescript(),
replace({ 'process.env.NODE_ENV': JSON.stringify('production'), preventAssignment: true }),
typescript({ module: 'ESNext' }),
terser(),
],
},
Expand All @@ -42,7 +42,7 @@ export default [
file: 'dist/memoize-one.esm.js',
format: 'esm',
},
plugins: [typescript()],
plugins: [typescript({ module: 'ESNext' })],
},
// CommonJS build
{
Expand All @@ -52,6 +52,6 @@ export default [
format: 'cjs',
exports: 'default',
},
plugins: [typescript()],
plugins: [typescript({ module: 'ESNext' })],
},
];
Loading

0 comments on commit 0eac58e

Please sign in to comment.