Skip to content

Commit

Permalink
Make workable bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
fatso83 committed May 25, 2018
1 parent 845a2b8 commit ce52516
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 7 deletions.
3 changes: 3 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,6 @@ docs/_site/
docs/js/
docs/releases/
docs/assets/js/

# has "invalid" ESM syntax
rollup.config.js
25 changes: 25 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@
"proxyquireify": "^3.2.1",
"rimraf": "^2.5.3",
"rollup-plugin-commonjs": "^9.1.3",
"rollup-plugin-node-resolve": "^3.3.0",
"samsam": "^1.3.0"
},
"files": [
Expand Down
15 changes: 8 additions & 7 deletions rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// rollup.config.js
import commonjs from "rollup-plugin-commonjs";
//import nodeResolve from "rollup-plugin-node-resolve";
import nodeResolve from "rollup-plugin-node-resolve";

export default {
input: "./lib/sinon.js",
Expand All @@ -9,10 +8,10 @@ export default {
format: "esm"
},
plugins: [
//nodeResolve({
//jsnext: true,
//main: true
//}),
nodeResolve({
jsnext: true,
main: true
}),

commonjs({
// non-CommonJS modules will be ignored, but you can also
Expand All @@ -34,7 +33,9 @@ export default {

// explicitly specify unresolvable named exports
// (see below for more details)
//namedExports: { "./module.js": ["foo", "bar"] }, // Default: undefined
//namedExports: {
//"node_modules/diff/lib/index.js": ["default"]
//} // Default: undefined

// sometimes you have to leave require statements
// unconverted. Pass an array containing the IDs
Expand Down

0 comments on commit ce52516

Please sign in to comment.