Skip to content

Commit c52212f

Browse files
committed
Improve build script
1 parent f24592c commit c52212f

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

build.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,12 @@ cat > dist/web/search-engine.js << EOF
7272
7373
// Self-executing function to create a contained scope
7474
const SearchEngine = (function() {
75-
$(cat dist/npm/index.js | grep -v "module.exports" | grep -v "exports." | grep -v "require(")
75+
const exports = {};
76+
77+
$(cat dist/npm/index.js | grep -v "module.exports" | grep -v "require(")
7678
7779
// Return public API
78-
return { search };
80+
return exports.default;
7981
})();
8082
8183
// Expose to global environment

0 commit comments

Comments
 (0)