Skip to content

Commit

Permalink
testing removing default export
Browse files Browse the repository at this point in the history
- see issue #292
  • Loading branch information
kalwalt committed Apr 4, 2023
1 parent 6c09c1b commit fa72770
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion dist/ARToolkitNFT_im.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions dist/ARToolkitNFT_im.js.LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
4 changes: 2 additions & 2 deletions src/index_improved.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,6 @@

import ARControllerNFT from "./ARControllerNFT_improved";

export default {
export {
ARControllerNFT,
};
}
5 changes: 1 addition & 4 deletions types/src/index_improved.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,2 @@
import ARControllerNFT from "./ARControllerNFT_improved";
declare const _default: {
ARControllerNFT: typeof ARControllerNFT;
};
export default _default;
export { ARControllerNFT, };
2 changes: 1 addition & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ module.exports = (env, argv) => {
library: "ARToolkitNFT",
libraryTarget: "umd",
// @see: https://github.com/webpack/webpack/issues/3929
libraryExport: "default",
///libraryExport: "default",
// @see: https://github.com/webpack/webpack/issues/6522
globalObject: "typeof self !== 'undefined' ? self : this",
},
Expand Down

0 comments on commit fa72770

Please sign in to comment.