-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(bezier-vscode): remove hoistLimits and add rollup config for ser…
…ver file as well - not necessary to include node_modules because dependencies are included in bundle
- Loading branch information
1 parent
c637503
commit 2d722e0
Showing
3 changed files
with
40 additions
and
1,645 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,43 @@ | ||
import commonjs from '@rollup/plugin-commonjs' | ||
import { nodeResolve } from '@rollup/plugin-node-resolve' | ||
import typescript from '@rollup/plugin-typescript' | ||
import { defineConfig } from 'rollup' | ||
|
||
export default defineConfig({ | ||
input: 'src/client.ts', | ||
output: { | ||
dir: 'dist', | ||
format: 'cjs', | ||
/** | ||
* @type {import('rollup').RollupOptions} | ||
*/ | ||
export default [ | ||
{ | ||
input: 'src/server.ts', | ||
output: { | ||
file: 'dist/server.js', | ||
format: 'cjs', | ||
}, | ||
external: ['vscode'], | ||
plugins: [ | ||
nodeResolve({ | ||
browser: false, | ||
preferBuiltins: true, | ||
extensions: ['.js', '.jsx', '.ts', '.tsx'], | ||
}), | ||
commonjs(), | ||
typescript(), | ||
], | ||
}, | ||
external: ['vscode'], | ||
plugins: [ | ||
nodeResolve({ | ||
browser: false, | ||
preferBuiltins: true, | ||
extensions: ['.js', '.jsx', '.ts', '.tsx'], // 해석할 파일 확장자 | ||
}), | ||
commonjs(), | ||
typescript(), | ||
], | ||
}) | ||
{ | ||
input: 'src/client.ts', | ||
output: { | ||
file: 'dist/client.js', | ||
format: 'cjs', | ||
}, | ||
external: ['vscode'], | ||
plugins: [ | ||
nodeResolve({ | ||
browser: false, | ||
preferBuiltins: true, | ||
extensions: ['.js', '.jsx', '.ts', '.tsx'], | ||
}), | ||
commonjs(), | ||
typescript(), | ||
], | ||
}, | ||
] |
Oops, something went wrong.