generated from storybookjs/addon-kit
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: clean up bundle, update json-schema-viewer
- Loading branch information
Showing
16 changed files
with
3,105 additions
and
4,707 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
const esbuild = require("esbuild"); | ||
const { nodeExternalsPlugin } = require("esbuild-node-externals"); | ||
|
||
/** @type import("esbuild").BuildOptions */ | ||
const sharedConfig = { | ||
entryPoints: ["src/index.ts", "src/preset/manager.ts"], | ||
bundle: true, | ||
platform: "browser", | ||
format: "esm", | ||
outdir: "dist/esm", | ||
plugins: [ | ||
nodeExternalsPlugin({ | ||
dependencies: true, | ||
devDependencies: false, | ||
peerDependencies: true, | ||
}), | ||
], | ||
logLevel: "info", | ||
}; | ||
|
||
esbuild.build({ | ||
...sharedConfig, | ||
format: "esm", | ||
outdir: "dist/esm", | ||
splitting: true, | ||
}); | ||
esbuild.build({ | ||
...sharedConfig, | ||
format: "cjs", | ||
outdir: "dist/cjs", | ||
}); |
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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
diff --git a/node_modules/decomment/lib/utils.js b/node_modules/decomment/lib/utils.js | ||
index bca12da..b9daf81 100644 | ||
--- a/node_modules/decomment/lib/utils.js | ||
+++ b/node_modules/decomment/lib/utils.js | ||
@@ -1,7 +1,7 @@ | ||
'use strict'; | ||
|
||
const esprima = require('esprima'); | ||
-const os = require('os'); | ||
+// const os = require('os'); | ||
|
||
//////////////////////////////////////////////////// | ||
// Automatically calculates and returns End of Line, | ||
@@ -20,9 +20,9 @@ function getEOL(text) { | ||
} | ||
idx++; | ||
} | ||
- if (unix === windows) { | ||
- return os.EOL; | ||
- } | ||
+ // if (unix === windows) { | ||
+ // return os.EOL; | ||
+ // } | ||
return unix > windows ? '\n' : '\r\n'; | ||
} | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.