Jason Miller
d56e4f012d
update snapshots
2020-05-08 19:51:30 +00:00
Jason Miller
d0ca19157e
Add fast rest parameters transform
2020-05-08 19:51:25 +00:00
Jason Miller
e082be1672
Merge pull request #605 from developit/fix-babel-modern
...
Fix babel modern
2020-05-08 12:01:25 -04:00
Jason Miller
b3cd06e26a
fix snapshot
2020-05-07 19:25:17 -04:00
Jason Miller
6855cbff0b
Update snapshots (yay 50% size reduction!)
2020-05-07 23:21:43 +00:00
Jason Miller
2bb2a18198
Use a separate Rollup cache for modern output.
2020-05-07 23:21:15 +00:00
Jason Miller
f7d231a5df
synchronize package lock version
2020-05-07 20:31:31 +00:00
Marvin Hagemeister
55218818dc
Merge pull request #603 from developit/preferbuiltins-fix
2020-05-06 23:39:18 +02:00
Jason Miller
078dbdb389
preferBuiltins: true for node, false for web
...
I don't know why I had this as undefined. We never want to inline built-ins.
2020-05-06 16:31:34 -04:00
Jason Miller
4cd4275209
Document iife format ( #601 )
2020-05-06 11:13:26 +02:00
Jason Miller
aa8a312f31
0.12.0-next.9
0.12.0-next.9
2020-05-01 16:56:57 -04:00
Jason Miller
bec46e66b8
Merge pull request #596 from developit/async-to-promises-helpers
...
Don't emit code that relies on importing external helpers
2020-05-01 16:54:48 -04:00
Jason Miller
e6136ebfaa
Merge branch 'master' into async-to-promises-helpers
2020-04-30 23:08:04 -04:00
Jason Miller
caf3dcad66
update snapshots
2020-04-30 23:06:33 -04:00
Marvin Hagemeister
1c90d6bb53
Merge pull request #588 from developit/define-expression-replacement
2020-04-30 19:30:40 +02:00
Jason Miller
becc015a56
Merge branch 'define-expression-replacement' of github.com:developit/microbundle into define-expression-replacement
2020-04-30 13:23:03 -04:00
Jason Miller
1d1387326c
Update babel-custom.js
2020-04-30 13:19:54 -04:00
Jason Miller
e552ead847
Merge branch 'master' into define-expression-replacement
2020-04-30 13:18:45 -04:00
Jason Miller
67a3bcc161
Merge branch 'master' into async-to-promises-helpers
2020-04-30 13:18:26 -04:00
Marvin Hagemeister
b7a049550f
Merge pull request #587 from developit/strip-ts-extensions
2020-04-30 19:15:14 +02:00
Jason Miller
e85667c5c4
Merge branch 'master' into strip-ts-extensions
2020-04-30 13:11:18 -04:00
Jason Miller
336cbb6567
fix tests
2020-04-29 22:05:55 -04:00
Jason Miller
2635e2efac
Also minify
2020-04-28 10:29:39 -04:00
Jason Miller
3d0e555633
Don't emit code that relies on importing external helpers
2020-04-28 10:21:10 -04:00
Jason Miller
7f224edaa4
Merge branch 'master' into define-expression-replacement
2020-04-23 09:58:18 -04:00
Jason Miller
5f59b3b0de
Merge pull request #591 from developit/prefer-builtins
...
Set preferBuiltins:true for Node
2020-04-20 10:47:12 -04:00
Leah
9133e099b9
Merge branch 'master' into prefer-builtins
2020-04-20 13:16:14 +02:00
Jason Miller
7005f26645
Add test for define-expressions, update snaps
2020-04-19 22:13:44 +00:00
Jason Miller
ab4080c3b4
Fix incorrect name for expression defines
2020-04-19 22:00:54 +00:00
Jason Miller
af9a83df45
Merge branch 'master' into strip-ts-extensions
2020-04-18 21:55:11 -04:00
Jason Miller
c524e9c0e3
Merge branch 'master' into define-expression-replacement
2020-04-18 21:52:56 -04:00
Jason Miller
0699b91550
Merge pull request #549 from developit/github-actions
...
GitHub actions
2020-04-18 21:52:17 -04:00
Jason Miller
b0f1ebf905
drop node 10
2020-04-18 21:49:19 -04:00
Jason Miller
970cebb20e
Merge branch 'master' into github-actions
2020-04-18 21:48:53 -04:00
Jason Miller
e13ecddc45
lint
2020-04-18 11:27:36 -04:00
Jason Miller
195451d930
Set preferBuiltins:true for Node
...
This option was enabled by default at some point in the node-resolve plugin, which should already have fixed #303 and #288 . It still prints a warning though, which is illogical when we're compiling for a Node target. This silences that warning.
2020-04-18 11:25:55 -04:00
Yidong Li
6a734c43bd
docs(Built with Microbundle): Add react-model. ( #343 )
2020-04-18 00:25:07 +02:00
Joe Haddad
9707f2db49
Fix Travis ( #590 )
2020-04-17 21:57:21 +02:00
Jason Miller
190c9d79e2
:|
2020-04-16 16:11:17 -04:00
Jason Miller
3d0da3fced
Re-add support for --define @expression=replacement
2020-04-16 16:05:26 -04:00
Jason Miller
0fa522d3f3
prettier
2020-04-16 14:34:26 -04:00
Jason Miller
dd27d8f7d3
Strip .ts extensions when generating bundle filenames
2020-04-16 14:30:43 -04:00
Jason Miller
2dd4afec70
Fix babel cache bleed ( #570 )
...
* Instantiate babel.custom() separately for each output
* Update index.js
* prettier
* prettier
* lint fixes
* revert unrelated terser change
* add test for modern + generators
Co-authored-by: Leah <me@hrmny.sh>
2020-03-12 16:36:04 -03:00
Jason Miller
63104505a9
Merge pull request #579 from developit/updates
...
update dependencies to fix ci
2020-03-12 14:42:33 -04:00
Leah
c22f24d6a4
update dependencies to fix ci
2020-03-12 15:40:03 -03:00
Jason Miller
55a2fe74d8
Merge pull request #577 from developit/license-file
...
Add LICENSE file
2020-03-11 14:56:27 -04:00
Marvin Hagemeister
41f2612220
Add LICENSE file
2020-03-06 07:49:52 +01:00
Leah
f526cee242
Update bors.toml ( #574 )
2020-03-04 10:58:58 +01:00
bors[bot]
6012f39053
Merge #571
...
571: Support import JSX from JS file r=ForsakenHarmony a=n3tr
## Changes
- Support import JSX from JS file by adding JSX extension to `@rollup/plugin-node-resolve` plugin
## Background
I have experience an error when importing `.jsx file` from `.js` file like
```
index.js -> A.jsx
```
will cause an error
```
Could not resolve './A' from src/index.js
```
However, Importing `.jsx` file from TypeScript file (`.ts`) file is seems working fine except the the import is chaining more than 3 levels depth.
```sh
index.ts -> A.jsx # This is fine
index.ts -> A.jsx -> B.jsx # This is fine
index.ts -> A.jsx -> B.jsx -> C.jsx
# Error: Could not resolve './C' from src/jsx-components/B.jsx
```
To reproduce the issue
```sh
git clone -b import-jsx-error --single-branch git@github.com:n3tr/microbundle-example.git
cd microbundle-example
yarn
yarn build --jsx React.createElement ./src/index.js
# or
yarn build --jsx React.createElement ./src/index.ts
```
---
I'm not really sure what is the root cause of the error, by adding extensions seems to fix the problem.
Co-authored-by: Jirat Ki <saakyz@gmail.com>
2020-03-02 14:06:33 +00:00
Jirat Ki
875558b9ff
Add comment
2020-03-01 15:54:50 +08:00