Merge pull request #3641 from darinmorrison/rollup-typescript

Some improvements to rollup and ts config
This commit is contained in:
Aleksey Kladov 2020-03-19 11:26:00 +01:00 committed by GitHub
commit 13af63a403
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View file

@ -1,7 +1,10 @@
// @ts-check
import resolve from '@rollup/plugin-node-resolve'; import resolve from '@rollup/plugin-node-resolve';
import commonjs from '@rollup/plugin-commonjs'; import commonjs from '@rollup/plugin-commonjs';
import nodeBuiltins from 'builtin-modules'; import nodeBuiltins from 'builtin-modules';
/** @type { import('rollup').RollupOptions } */
export default { export default {
input: 'out/main.js', input: 'out/main.js',
plugins: [ plugins: [

View file

@ -1,7 +1,7 @@
{ {
"compilerOptions": { "compilerOptions": {
"module": "commonjs", "module": "commonjs",
"target": "es2018", "target": "es2019",
"outDir": "out", "outDir": "out",
"lib": [ "lib": [
"es2019" "es2019"