Skip to content

fix node-12 incompatible javascript#1517

Merged
LukeSheard merged 2 commits intomainfrom
patch/fix-js-output
Mar 28, 2022
Merged

fix node-12 incompatible javascript#1517
LukeSheard merged 2 commits intomainfrom
patch/fix-js-output

Conversation

@LukeSheard
Copy link
Contributor

No description provided.

@changeset-bot
Copy link

changeset-bot bot commented Mar 28, 2022

🦋 Changeset detected

Latest commit: 4f8b050

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
create-modular-react-app Patch
modular-scripts Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@coveralls
Copy link
Collaborator

coveralls commented Mar 28, 2022

Coverage Status

Coverage increased (+0.04%) to 28.786% when pulling 4f8b050 on patch/fix-js-output into 985a2d7 on main.

@cristiano-belloni cristiano-belloni self-requested a review March 28, 2022 12:20
{
targets: {
node: 'current',
// TODO: can we get this to read from package.json somehow..?
Copy link
Contributor

@benpryke benpryke Mar 28, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Q: Can you not read package.json and parse the engines.node field to find the smallest number?

},
'@babel/preset-typescript',
],
plugins: ['@babel/plugin-proposal-class-properties'],
Copy link
Contributor

@benpryke benpryke Mar 28, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Q: Why do we need to add this additional plugin on top of @babel/preset-typescript? Are there any more we need?

@LukeSheard LukeSheard merged commit 22c2114 into main Mar 28, 2022
@LukeSheard LukeSheard deleted the patch/fix-js-output branch March 28, 2022 12:26
@github-actions github-actions bot mentioned this pull request Mar 28, 2022
cristiano-belloni pushed a commit that referenced this pull request Apr 5, 2022
LukeSheard pushed a commit that referenced this pull request Apr 12, 2022
LukeSheard added a commit that referenced this pull request Apr 28, 2022
* Bring webpack configuration to a valid (but not working) state

* webpack build working

* Remove sourcemap obsolete flag

* Redo ForkTsCheckerWebpackPlugin conf

* Fix stats type mismatch

* start.js

* dev server working but trying to typecheck node_modules

* webpack start is working

* Change css minimizer to remove deprecation

* Remove diagnostics

* Update snapshots

* Support new version of minimize

* Add explaining comment

* Update yarn.lock

* Update snapshots

* Update all snapshots

* Update snapshot hash

* Add missing quotes

* Remove unwanted media dist files

* remove tsbuildinfo

* Make test names decoupled from hashes

* Update test snapshots

* Create silver-dolphins-remember.md

* Enter pre-release mode

* Remove requireEnsure

* Regenerate pre.json

* remove workflow rule

* Update pre.json

* Update snapshots

* Update build snapshots

* Update browser versions

* Version Packages (alpha-webpack5)

* Revert "Revert engine range (#1518)"

This reverts commit d896289.

* Revert "fix node-12 incompatible javascript (#1517)"

This reverts commit 22c2114.

* Remove node 12 support

* Add changeset

* Add node 18 in CI

* Revert "Add node 18 in CI"

This reverts commit c40158b.

* Hardcode node to v14

* support node 16 explicitly and run test workflow against target node versions

* fix node versions so that tests run

* Create dirty-mugs-double.md

* fix node versions so that tests run and remove 15 since it's unsupported

* Raise version to be compatible with eslint

* Version Packages (alpha-webpack5)

* Update snapshots

* Remove alpha release artifacts

* Update snapshots

* Update snapshots

* Update snapshot

Co-authored-by: Cristiano Belloni <cristiano.belloni@jpmorgan.com>
Co-authored-by: Cristiano Belloni <cristiano-belloni@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
cristiano-belloni added a commit that referenced this pull request May 12, 2022
* Bring webpack configuration to a valid (but not working) state

* webpack build working

* Remove sourcemap obsolete flag

* Redo ForkTsCheckerWebpackPlugin conf

* Fix stats type mismatch

* start.js

* dev server working but trying to typecheck node_modules

* webpack start is working

* Change css minimizer to remove deprecation

* Remove diagnostics

* Update snapshots

* Support new version of minimize

* Add explaining comment

* Update yarn.lock

* Update snapshots

* Update all snapshots

* Update snapshot hash

* Add missing quotes

* Remove unwanted media dist files

* remove tsbuildinfo

* Make test names decoupled from hashes

* Update test snapshots

* Create silver-dolphins-remember.md

* Enter pre-release mode

* Remove requireEnsure

* Regenerate pre.json

* remove workflow rule

* Update pre.json

* Update snapshots

* Update build snapshots

* Update browser versions

* Version Packages (alpha-webpack5)

* Revert "Revert engine range (#1518)"

This reverts commit d896289.

* Revert "fix node-12 incompatible javascript (#1517)"

This reverts commit 22c2114.

* Remove node 12 support

* Add changeset

* Add node 18 in CI

* Revert "Add node 18 in CI"

This reverts commit c40158b.

* Hardcode node to v14

* support node 16 explicitly and run test workflow against target node versions

* fix node versions so that tests run

* Create dirty-mugs-double.md

* fix node versions so that tests run and remove 15 since it's unsupported

* Raise version to be compatible with eslint

* Version Packages (alpha-webpack5)

* Support for esm-view type in react scripts

* Add esm-view into modular types

* Better names for isView + activate esm-views in start

* Update tests

* Add tests and way of adding esm-view

* Better comments/names

* Add esm-view type

* Add package modular-template-esm-view

* Fix logger error

* fix esm view tests

* Fix app tests

* Fix view tests

* Fix build tests

* Remove residual changelogs

* Fix app node env tests

* Fix WorkspaceInfo test

* Create proud-starfishes-stare.md

* Update packages/modular-scripts/src/addPackage.ts

Co-authored-by: Steve King <steve@mydev.co>

* Update packages/modular-scripts/src/serve.ts

Co-authored-by: Steve King <steve@mydev.co>

* Remove assertion

* Use Object.create

* Use map for importMap

* Use paths to get the entrypoint file

* Simplify index creation

* Wording of add options

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Luke Sheard <me@lukesheard.com>
Co-authored-by: Luke Sheard <LukeSheard@users.noreply.github.com>
Co-authored-by: Steve King <steve@mydev.co>
cristiano-belloni added a commit that referenced this pull request May 20, 2022
* Bring webpack configuration to a valid (but not working) state

* webpack build working

* Remove sourcemap obsolete flag

* Redo ForkTsCheckerWebpackPlugin conf

* Fix stats type mismatch

* start.js

* dev server working but trying to typecheck node_modules

* webpack start is working

* Change css minimizer to remove deprecation

* Remove diagnostics

* Update snapshots

* Support new version of minimize

* Add explaining comment

* Update yarn.lock

* Update snapshots

* Update all snapshots

* Update snapshot hash

* Add missing quotes

* Remove unwanted media dist files

* remove tsbuildinfo

* Make test names decoupled from hashes

* Update test snapshots

* Create silver-dolphins-remember.md

* Enter pre-release mode

* Remove requireEnsure

* Regenerate pre.json

* remove workflow rule

* Update pre.json

* Update snapshots

* Update build snapshots

* Update browser versions

* Version Packages (alpha-webpack5)

* Revert "Revert engine range (#1518)"

This reverts commit d896289.

* Revert "fix node-12 incompatible javascript (#1517)"

This reverts commit 22c2114.

* Remove node 12 support

* Add changeset

* Add node 18 in CI

* Revert "Add node 18 in CI"

This reverts commit c40158b.

* Hardcode node to v14

* support node 16 explicitly and run test workflow against target node versions

* fix node versions so that tests run

* Create dirty-mugs-double.md

* fix node versions so that tests run and remove 15 since it's unsupported

* Raise version to be compatible with eslint

* Version Packages (alpha-webpack5)

* Support for esm-view type in react scripts

* Add esm-view into modular types

* Better names for isView + activate esm-views in start

* Update tests

* Add tests and way of adding esm-view

* Better comments/names

* Add esm-view type

* Add package modular-template-esm-view

* Fix logger error

* fix esm view tests

* Fix app tests

* Fix view tests

* Fix build tests

* Remove residual changelogs

* Fix app node env tests

* Fix WorkspaceInfo test

* Create proud-starfishes-stare.md

* Extract resolutions from lockfile and use them to build esbuild

* Extract resolutions from lockfile and use them to build Webpack

* Write tests for resolutions

* Fix tests

* Create tender-shirts-turn.md

* Update test snapshots

* Update rewriteDependenciesPlugin.ts

* Use resolution if no version

* Use reactdom version if present

* Merge api.ts

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Luke Sheard <me@lukesheard.com>
Co-authored-by: Luke Sheard <LukeSheard@users.noreply.github.com>
cristiano-belloni added a commit that referenced this pull request May 24, 2022
* Bring webpack configuration to a valid (but not working) state

* webpack build working

* Remove sourcemap obsolete flag

* Redo ForkTsCheckerWebpackPlugin conf

* Fix stats type mismatch

* start.js

* dev server working but trying to typecheck node_modules

* webpack start is working

* Change css minimizer to remove deprecation

* Remove diagnostics

* Update snapshots

* Support new version of minimize

* Add explaining comment

* Update yarn.lock

* Update snapshots

* Update all snapshots

* Update snapshot hash

* Add missing quotes

* Remove unwanted media dist files

* remove tsbuildinfo

* Make test names decoupled from hashes

* Update test snapshots

* Create silver-dolphins-remember.md

* Enter pre-release mode

* Remove requireEnsure

* Regenerate pre.json

* remove workflow rule

* Update pre.json

* Update snapshots

* Update build snapshots

* Update browser versions

* Version Packages (alpha-webpack5)

* Revert "Revert engine range (#1518)"

This reverts commit d896289.

* Revert "fix node-12 incompatible javascript (#1517)"

This reverts commit 22c2114.

* Remove node 12 support

* Add changeset

* Add node 18 in CI

* Revert "Add node 18 in CI"

This reverts commit c40158b.

* Hardcode node to v14

* support node 16 explicitly and run test workflow against target node versions

* fix node versions so that tests run

* Create dirty-mugs-double.md

* fix node versions so that tests run and remove 15 since it's unsupported

* Raise version to be compatible with eslint

* Version Packages (alpha-webpack5)

* Support for esm-view type in react scripts

* Add esm-view into modular types

* Better names for isView + activate esm-views in start

* Update tests

* Add tests and way of adding esm-view

* Better comments/names

* Add esm-view type

* Add package modular-template-esm-view

* Fix logger error

* fix esm view tests

* Fix app tests

* Fix view tests

* Fix build tests

* Remove residual changelogs

* Fix app node env tests

* Fix WorkspaceInfo test

* Create proud-starfishes-stare.md

* Extract resolutions from lockfile and use them to build esbuild

* Extract resolutions from lockfile and use them to build Webpack

* Write tests for resolutions

* Fix tests

* Add the analyze command

* Add docs

* Fix title in docs

* Create lemon-rules-kick.md

* Revert merged

* Better docs

* Update docs/commands/analyze.md

Co-authored-by: Steve King <steve@mydev.co>

* Use strip-ansi

* Update lemon-rules-kick.md

* Use explicit numbers in list

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Luke Sheard <me@lukesheard.com>
Co-authored-by: Luke Sheard <LukeSheard@users.noreply.github.com>
Co-authored-by: Steve King <steve@mydev.co>
cristiano-belloni added a commit that referenced this pull request May 31, 2022
* Bring webpack configuration to a valid (but not working) state

* webpack build working

* Remove sourcemap obsolete flag

* Redo ForkTsCheckerWebpackPlugin conf

* Fix stats type mismatch

* start.js

* dev server working but trying to typecheck node_modules

* webpack start is working

* Change css minimizer to remove deprecation

* Remove diagnostics

* Update snapshots

* Support new version of minimize

* Add explaining comment

* Update yarn.lock

* Update snapshots

* Update all snapshots

* Update snapshot hash

* Add missing quotes

* Remove unwanted media dist files

* remove tsbuildinfo

* Make test names decoupled from hashes

* Update test snapshots

* Create silver-dolphins-remember.md

* Enter pre-release mode

* Remove requireEnsure

* Regenerate pre.json

* remove workflow rule

* Update pre.json

* Update snapshots

* Update build snapshots

* Update browser versions

* Version Packages (alpha-webpack5)

* Revert "Revert engine range (#1518)"

This reverts commit d896289.

* Revert "fix node-12 incompatible javascript (#1517)"

This reverts commit 22c2114.

* Remove node 12 support

* Add changeset

* Add node 18 in CI

* Revert "Add node 18 in CI"

This reverts commit c40158b.

* Hardcode node to v14

* support node 16 explicitly and run test workflow against target node versions

* fix node versions so that tests run

* Create dirty-mugs-double.md

* fix node versions so that tests run and remove 15 since it's unsupported

* Raise version to be compatible with eslint

* Version Packages (alpha-webpack5)

* Support for esm-view type in react scripts

* Add esm-view into modular types

* Better names for isView + activate esm-views in start

* Update tests

* Add tests and way of adding esm-view

* Better comments/names

* Add esm-view type

* Add package modular-template-esm-view

* Fix logger error

* fix esm view tests

* Fix app tests

* Fix view tests

* Fix build tests

* Remove residual changelogs

* Fix app node env tests

* Fix WorkspaceInfo test

* Create proud-starfishes-stare.md

* Write docs for ESM Views

* Merge api.ts

* Update esm views.md

* Remove redundant micromatch link

* Reformat docs

* Mention resolutions

* Fix grammar / content

* Explain trampoline file

* Additional review fixes

* Apply suggestions from code review

Co-authored-by: Steve King <steve@mydev.co>

* Linting

* content fix

* Apply suggestions from code review

Co-authored-by: Steve King <steve@mydev.co>

* Lint

* Hyphenate file names

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Luke Sheard <me@lukesheard.com>
Co-authored-by: Luke Sheard <LukeSheard@users.noreply.github.com>
Co-authored-by: Steve King <steve@mydev.co>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants