622 Commits

Author SHA1 Message Date
Jason Miller
e552ead847
Merge branch 'master' into define-expression-replacement 2020-04-30 13:18:45 -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
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
Alberto
8cc0d7b337
Update README moving .mjs with .module.js (#512)
* Update README moving .mjs with .module.js

Hi, referring to #426 in my case to get rid of the error (`Can't import the named export 'xxx' from non EcmaScript module`) I just changed the name of the output file.
I just copy-pasted from readme, so I assume a different readme didn't make me run into this error.

* typo

Co-authored-by: Leah <github.leah@hrmny.sh>
2020-02-28 14:29:18 +01:00
Jirat Ki
9eb78a4110 Supply extensions to node-resolve plugin 2020-02-28 16:50:33 +08:00
Jason Miller
e2b89c0557
add name mangling guide 2020-02-18 20:03:14 -05:00
Jason Miller
55b1f985c6
Merge pull request #541 from lachlanjc/patch-1
Add Theme UI to README project showcase
2020-02-17 16:12:24 -05:00
Jason Miller
5fc25ec336
Merge branch 'master' into patch-1 2020-02-17 16:12:17 -05:00
Marvin Hagemeister
cec1b42eca
Merge pull request #561 from maraisr/feature/prettier
chore: Runs prettier as a pre-commit hook
2020-02-11 07:31:18 +01:00
Marvin Hagemeister
13ca8702b8
Merge branch 'master' into feature/prettier 2020-02-11 07:29:06 +01:00
Jason Miller
fe1f60cd64
Merge pull request #563 from developit/greenkeeper-lockfiles
Make greenkeeper respect lockfiles
2020-02-10 15:26:10 -05:00
Jason Miller
96cfe38130
Make greenkeeper respect lockfiles 2020-02-10 14:54:05 -05:00
Marais Rossouw
d2d2f2db76
chore: Updated package-lock 2020-02-10 07:07:50 +10:00
Marais Rossouw
87e3dd52ce
chore: Runs prettier as a pre-commit hook 2020-02-10 07:02:20 +10:00
Marais Rossouw
5100c7bbf2 Adds a --css-modules option (#370)
* feat: adds a `--cssmodules` option

* chore: Allow scopeName to come from args

* chore: --css-modules is now tristate

* docs: Wrote docs around how to use css-modules

* chore: Fixed all tristate logic, and readable first

* test: Wrote tests for all avenues

* chore: Add's newlines to the end of files
2020-02-09 18:41:09 +01:00
Marvin Hagemeister
5ca1514a10
Merge pull request #559 from cristianbote/patch-1
Adding goober to built with
2020-02-04 13:50:26 +01:00
Cristian Bote
4c85db51be
Adding goober to built with 2020-02-04 14:36:32 +02:00
Marvin Hagemeister
ccb8621fba
Merge pull request #558 from JoviDeCroock/patch-1
add hooked-form to built with section
2020-02-04 13:14:10 +01:00
Jovi De Croock
43d43e386d
add hooked-form to built with section 2020-02-04 12:31:14 +01:00
Marvin Hagemeister
8431fded96
Implement preset-modules for modern (#557)
Implement preset-modules for modern
2020-02-03 10:30:09 +01:00
Jovi De Croock
31f9de03d8 another snapshot correction (node_modules snuck in) 2020-02-02 21:53:44 +01:00
Jovi De Croock
b9a6f0c244 update snapshots 2020-02-02 21:49:33 +01:00
Jovi De Croock
56ab91357e correct regexp 2020-02-02 21:35:12 +01:00
Jovi De Croock
20d165cd14 add the preset conversion 2020-02-02 19:11:08 +01:00