Skip to content

Commit

Permalink
keep bundle in npm package - and save part of the change for the #29
Browse files Browse the repository at this point in the history
…change
  • Loading branch information
uladkasach committed Mar 17, 2018
1 parent c088b67 commit 7b82dc4
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions dist/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
*
!.gitignore
!.npmignore
1 change: 1 addition & 0 deletions dist/.npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
!bundle.js
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "clientside-require",
"version": "3.9.3",
"version": "3.9.4",
"description": "require() modules, js, css, html, and json in the browser with as little effort as loading jquery",
"main": "src/index.js",
"bundle": "dist/bundle.js",
Expand Down
2 changes: 1 addition & 1 deletion src/utilities/content_loading/commonjs.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ module.exports = {
var exports = await this.helpers.extract_exports_from_frame(frame);

// destroy the frame now that we have the exports
if(typeof process == "undefined") this.helpers.remove_frame(frame); // do not remove iframe if we are using in node context (meaning we are using jsdom). TODO (#29) - figure how to preserve the window object (specifically window.document) after iframe is removed from parent
if(typeof process == "undefined") this.helpers.remove_frame(frame); // do not remove iframe if we are using in node context (meaning we are using jsdom). TODO (#29) - figure how to preserve the window object (specifically window.document) after iframe is removed from parent

// return the exports
return exports;
Expand Down

0 comments on commit 7b82dc4

Please sign in to comment.