Skip to content

Commit 8410420

Browse files
bhovhannescitizensas
authored andcommitted
fix: changes to upgrade to node-resolve v8
1 parent 96c1f75 commit 8410420

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

rollup.config.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import typescript from '@rollup/plugin-typescript'
2-
import resolve from '@rollup/plugin-node-resolve'
2+
import {nodeResolve} from '@rollup/plugin-node-resolve'
33
import commonjs from '@rollup/plugin-commonjs'
44
import {terser} from 'rollup-plugin-terser'
55

@@ -16,7 +16,7 @@ module.exports = [
1616
sourcemap: true,
1717
},
1818
],
19-
plugins: [typescript(), resolve(), commonjs()],
19+
plugins: [typescript(), nodeResolve(), commonjs()],
2020
},
2121
{
2222
input: 'src/Api.ts',
@@ -31,7 +31,7 @@ module.exports = [
3131
typescript({
3232
module: 'es6',
3333
}),
34-
resolve(),
34+
nodeResolve(),
3535
commonjs(),
3636
],
3737
},
@@ -43,17 +43,17 @@ module.exports = [
4343
name: 'Wokfront',
4444
sourcemap: true,
4545
},
46-
plugins: [typescript(), resolve(), commonjs(), terser()],
46+
plugins: [typescript(), nodeResolve(), commonjs(), terser()],
4747
},
4848
{
4949
input: 'src/node.ts',
5050
output: {
5151
file: `dist/${name}.cjs.js`,
5252
format: 'cjs',
5353
sourcemap: true,
54-
exports: 'named'
54+
exports: 'named',
5555
},
56-
plugins: [typescript(), commonjs({ extensions: ['.js', '.ts'] })],
56+
plugins: [typescript(), commonjs({extensions: ['.js', '.ts']})],
5757
external: ['tslib', 'form-data', 'isomorphic-fetch', 'workfront-api-constants'],
5858
},
5959
]

0 commit comments

Comments
 (0)