Skip to content
This repository has been archived by the owner on Aug 20, 2020. It is now read-only.

Commit

Permalink
Patch microbundle: workaround developit/microbundle#705
Browse files Browse the repository at this point in the history
  • Loading branch information
simnalamburt committed Aug 19, 2020
1 parent 013e70e commit 551fddc
Show file tree
Hide file tree
Showing 3 changed files with 82 additions and 3 deletions.
28 changes: 28 additions & 0 deletions microbundle.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
diff --git a/dist/cli.js b/dist/cli.js
index 5672733813ad0999e4f12d05d751951bc9a472a5..dd92b95369baa5fb67cfb019544dbbce14a450a1 100644
--- a/dist/cli.js
+++ b/dist/cli.js
@@ -237,9 +237,6 @@ var customBabel = (() => {
}, {
name: '@babel/plugin-proposal-class-properties',
loose: true
- }, !customOptions.modern && {
- name: '@babel/plugin-transform-regenerator',
- async: false
}, {
name: 'babel-plugin-macros'
}].filter(Boolean));
diff --git a/dist/microbundle.js b/dist/microbundle.js
index 91fd66a0e8da2f8e961c0f6fd43f00a926f0fc45..7b6bc7cb53688b5660156b1cd8b5ba65020b3bdf 100644
--- a/dist/microbundle.js
+++ b/dist/microbundle.js
@@ -236,9 +236,6 @@ var customBabel = (() => {
}, {
name: '@babel/plugin-proposal-class-properties',
loose: true
- }, !customOptions.modern && {
- name: '@babel/plugin-transform-regenerator',
- async: false
}, {
name: 'babel-plugin-macros'
}].filter(Boolean));
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"devDependencies": {
"@types/mocha": "^8.0.1",
"@types/node": "^14.0.27",
"microbundle": "^0.12.3",
"microbundle": "patch:microbundle@0.12.3#./microbundle.patch",
"mocha": "^8.1.1",
"prettier": "^2.0.5",
"sucrase": "^3.15.0",
Expand Down
55 changes: 53 additions & 2 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3651,7 +3651,7 @@ fsevents@~2.1.2:
languageName: node
linkType: hard

"microbundle@npm:^0.12.3":
[email protected]:
version: 0.12.3
resolution: "microbundle@npm:0.12.3"
dependencies:
Expand Down Expand Up @@ -3702,6 +3702,57 @@ fsevents@~2.1.2:
languageName: node
linkType: hard

"microbundle@patch:[email protected]#./microbundle.patch::locator=xsalsa20-csprng%40workspace%3A.":
version: 0.12.3
resolution: "microbundle@patch:microbundle@npm%3A0.12.3#./microbundle.patch::version=0.12.3&hash=91cec0&locator=xsalsa20-csprng%40workspace%3A."
dependencies:
"@babel/core": ^7.10.2
"@babel/plugin-proposal-class-properties": 7.7.4
"@babel/plugin-syntax-import-meta": ^7.10.1
"@babel/plugin-syntax-jsx": ^7.10.1
"@babel/plugin-transform-flow-strip-types": ^7.10.1
"@babel/plugin-transform-react-jsx": ^7.10.1
"@babel/plugin-transform-regenerator": ^7.10.1
"@babel/preset-env": ^7.10.2
"@babel/preset-flow": ^7.10.1
"@babel/preset-modules": ^0.1.3
"@rollup/plugin-alias": ^3.1.1
"@rollup/plugin-babel": ^5.0.3
"@rollup/plugin-commonjs": ^13.0.0
"@rollup/plugin-json": ^4.1.0
"@rollup/plugin-node-resolve": ^6.1.0
asyncro: ^3.0.0
autoprefixer: ^9.8.0
babel-plugin-macros: ^2.8.0
babel-plugin-transform-async-to-promises: ^0.8.15
babel-plugin-transform-replace-expressions: ^0.2.0
brotli-size: ^4.0.0
camelcase: ^5.3.1
cssnano: ^4.1.10
es6-promisify: ^6.1.1
escape-string-regexp: ^4.0.0
filesize: ^6.1.0
gzip-size: ^5.1.1
kleur: ^3.0.3
lodash.merge: ^4.6.2
module-details-from-path: ^1.0.3
pretty-bytes: ^5.3.0
rollup: ^1.32.1
rollup-plugin-bundle-size: ^1.0.1
rollup-plugin-es3: ^1.1.0
rollup-plugin-postcss: ^2.9.0
rollup-plugin-terser: ^5.3.0
rollup-plugin-typescript2: ^0.25.3
sade: ^1.7.3
tiny-glob: ^0.2.6
tslib: ^1.13.0
typescript: ^3.9.5
bin:
microbundle: dist/cli.js
checksum: a1f5760a79c697ff09a7e53c3a37a52e8de45d598098623391d712e8ece8ad06d96e239fb365ab6bf6cbfd34d100a035faa120d3b4d3e2c8f598293aeaa7cc1a
languageName: node
linkType: hard

"mime-db@npm:1.44.0":
version: 1.44.0
resolution: "mime-db@npm:1.44.0"
Expand Down Expand Up @@ -5837,7 +5888,7 @@ [email protected]:
dependencies:
"@types/mocha": ^8.0.1
"@types/node": ^14.0.27
microbundle: ^0.12.3
microbundle: "patch:microbundle@0.12.3#./microbundle.patch"
mocha: ^8.1.1
prettier: ^2.0.5
sucrase: ^3.15.0
Expand Down

0 comments on commit 551fddc

Please sign in to comment.