瀏覽代碼

don't minify

main
Steve Ruiz 4 年之前
父節點
當前提交
a70cb145be
共有 3 個檔案被更改,包括 3 行新增3 行删除
  1. 1
    1
      example/scripts/build.mjs
  2. 1
    1
      example/scripts/dev.mjs
  3. 1
    1
      packages/tldraw/scripts/build.js

+ 1
- 1
example/scripts/build.mjs 查看文件

@@ -18,7 +18,7 @@ async function main() {
18 18
     esbuild.buildSync({
19 19
       entryPoints: ['./src/index.tsx'],
20 20
       outfile: 'dist/index.js',
21
-      minify: true,
21
+      minify: false,
22 22
       bundle: true,
23 23
       format: 'cjs',
24 24
       target: 'es6',

+ 1
- 1
example/scripts/dev.mjs 查看文件

@@ -16,8 +16,8 @@ async function main() {
16 16
       {
17 17
         entryPoints: ['src/index.tsx'],
18 18
         outfile: 'dist/index.js',
19
-        bundle: true,
20 19
         minify: false,
20
+        bundle: true,
21 21
         sourcemap: true,
22 22
         incremental: true,
23 23
         target: ['chrome58', 'firefox57', 'safari11', 'edge18'],

+ 1
- 1
packages/tldraw/scripts/build.js 查看文件

@@ -17,7 +17,7 @@ async function main() {
17 17
     esbuild.buildSync({
18 18
       entryPoints: ['./src/index.ts'],
19 19
       outdir: 'dist/cjs',
20
-      minify: true,
20
+      minify: false,
21 21
       bundle: true,
22 22
       format: 'cjs',
23 23
       target: 'es6',

Loading…
取消
儲存