Skip to content

Commit

Permalink
Merge pull request #36 from blocknative/develop
Browse files Browse the repository at this point in the history
Release 0.2.1
  • Loading branch information
lnbc1QWFyb24 authored Oct 26, 2019
2 parents 4b632ee + cce5fd7 commit 7be0d58
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 12 deletions.
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
{
"name": "bnc-notify",
"version": "0.2.0",
"version": "0.2.1",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
"files": [
"dist/esm/*",
"dist/cjs/*"
],
"types": "./types.d.ts",
"license": "MIT",
"devDependencies": {
"rollup": "^1.12.0",
"rollup-plugin-commonjs": "^10.0.0",
Expand All @@ -22,20 +23,19 @@
"@babel/core": "^7.5.5",
"@babel/preset-env": "^7.5.5",
"babel-eslint": "^7.1.1",
"babel-plugin-external-helpers": "^6.18.0"
"babel-plugin-external-helpers": "^6.18.0",
"svelte": "^3.5.4"
},
"dependencies": {
"bignumber.js": "^9.0.0",
"bnc-sdk": "0.2.1",
"lodash.debounce": "^4.0.8",
"regenerator-runtime": "^0.13.3",
"svelte": "^3.5.4",
"svelte-i18n": "^1.1.2-beta",
"uuid": "^3.3.3"
},
"scripts": {
"prepare": "rollup -c",
"build": "npm run prepare",
"build": "rollup -c",
"test": "echo \"TBD\" && exit 0"
}
}
28 changes: 21 additions & 7 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,16 @@ export default [
file: "dist/iife/notify.js",
esModule: false
},
moduleContext: id => {
const thisAsWindowForModules = [
"node_modules/intl-messageformat/lib/core.js",
"node_modules/intl-messageformat/lib/compiler.js"
]

if (thisAsWindowForModules.some(id_ => id.trimRight().endsWith(id_))) {
return "window"
}
},
plugins: [
svelte(),
json(),
Expand All @@ -38,22 +48,26 @@ export default [
"bignumber.js",
"bnc-sdk",
"lodash.debounce",
"svelte-i18n",
"uuid/v4",
"svelte",
"svelte/store",
"svelte/internal",
"svelte/transition",
"svelte/easing",
"svelte/animate",
"regenerator-runtime/runtime"
],
plugins: [
svelte(),
json(),
resolve(),
commonjs(),
babel({ exclude: "node_modules/**" })
],
moduleContext: id => {
const thisAsWindowForModules = [
"node_modules/intl-messageformat/lib/core.js",
"node_modules/intl-messageformat/lib/compiler.js"
]

if (thisAsWindowForModules.some(id_ => id.trimRight().endsWith(id_))) {
return "window"
}
},
output: [
{
dir: "dist/esm",
Expand Down

0 comments on commit 7be0d58

Please sign in to comment.