mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-13 13:48:50 +00:00
Merge pull request #3641 from darinmorrison/rollup-typescript
Some improvements to rollup and ts config
This commit is contained in:
commit
13af63a403
2 changed files with 4 additions and 1 deletions
|
@ -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: [
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"module": "commonjs",
|
"module": "commonjs",
|
||||||
"target": "es2018",
|
"target": "es2019",
|
||||||
"outDir": "out",
|
"outDir": "out",
|
||||||
"lib": [
|
"lib": [
|
||||||
"es2019"
|
"es2019"
|
||||||
|
|
Loading…
Reference in a new issue