Skip to content

Commit 9762b2f

Browse files
author
Wangdahai
committed
Implement translator feature
1 parent b883867 commit 9762b2f

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "py-slang-test-pac",
2+
"name": "py-slang",
33
"packageManager": "[email protected]",
44
"version": "1.0.0",
55
"description": "",

rollup.config.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,17 @@ import typescript from '@rollup/plugin-typescript';
66
* @type {import('rollup').RollupOptions}
77
*/
88
const config = {
9-
input: 'src/index.ts', // 你项目的入口文件
9+
input: 'src/index.ts',
1010
output: {
11-
file: 'dist/index.js', // 打包后的输出文件
12-
format: 'umd', // 生成浏览器可用的UMD格式
13-
name: 'PySlangRunner', // UMD下全局变量名称,随意起个名字
14-
sourcemap: true // 若要调试,可以开启source map
11+
file: 'dist/index.js',
12+
format: 'umd',
13+
name: 'PySlangRunner',
14+
sourcemap: true
1515
},
1616
plugins: [
17-
resolve(), // 支持从node_modules中解析依赖
18-
commonjs(), // 将commonjs依赖转成ESM
19-
typescript({ // 编译TypeScript
17+
resolve(),
18+
commonjs(),
19+
typescript({
2020
tsconfig: './tsconfig.json'
2121
})
2222
]

0 commit comments

Comments
 (0)