diff options
author | 2023-05-09 00:55:21 -0400 | |
---|---|---|
committer | 2023-05-08 21:55:21 -0700 | |
commit | 5e366872f659abf116b903e5cece999a04cd018b (patch) | |
tree | d06b5ccd28ea49a7a5e050868ff27e676e0d56f7 /src/bun.js/builtins/js/BundlerPlugin.js | |
parent | 1a411e201b71374f515d1f6cdbb1b36186ee48b0 (diff) | |
download | bun-5e366872f659abf116b903e5cece999a04cd018b.tar.gz bun-5e366872f659abf116b903e5cece999a04cd018b.tar.zst bun-5e366872f659abf116b903e5cece999a04cd018b.zip |
implement build api `define` and `loaders` (#2805)
* parse error logs
* clean up types
* remove --jsx-production. use NODE_ENV instead
* add define to js api
* add loaders to js api
* fixups
* sourcemap
* typo fix
* remove label, comment dir just for now
* test tweaks
* test work
* make optional enums actually optional.
allows `sourcemap: undefined`
* overload host ram test
* string tests
* tests
* test for 2815
* requested changes
* sort this list
* remove this test file now that it passes
* oops
* add --format
* finish ts tests
* doc typos related to define and loader
Diffstat (limited to 'src/bun.js/builtins/js/BundlerPlugin.js')
-rw-r--r-- | src/bun.js/builtins/js/BundlerPlugin.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/bun.js/builtins/js/BundlerPlugin.js b/src/bun.js/builtins/js/BundlerPlugin.js index 64c655bbe..ec8fee397 100644 --- a/src/bun.js/builtins/js/BundlerPlugin.js +++ b/src/bun.js/builtins/js/BundlerPlugin.js @@ -66,7 +66,9 @@ function runOnResolvePlugins( path: inputPath, importer, namespace: inputNamespace, + // resolveDir kind, + // pluginData }); while ( @@ -368,6 +370,8 @@ function runOnLoadPlugins(internalID, path, namespace, defaultLoaderId) { var result = callback({ path, namespace, + // suffix + // pluginData loader: defaultLoader, }); |