Commit Graph

136 Commits

Author SHA1 Message Date
Ben Newman
4e21be3945 Update modules test app to Meteor 1.6.1. 2018-01-20 17:16:35 -05:00
Ben Newman
6ae14731a2 Avoid hiding errors due to missing dependencies of custom Babel plugins.
As illustrated by #9554, if a custom .babelrc plugin such as
@babel/plugin-proposal-optional-chaining imports a missing dependency such
as @babel/core, that failure causes inputFile.require to throw an
exception that looks a lot like @babel/plugin-proposal-optional-chaining
itself is missing, which can be confusing.

This change does not fix the underlying problem (the @babel/core package
still needs to be installed), but it does expose the exception so that the
developer can do something about it, rather than merely leaving the ?.
syntax uncompiled.

Here's the offending line of code:
47ce7e71c9/packages/babel-plugin-proposal-optional-chaining/src/index.js (L2)

Unfortunately, depending directly on @babel/core seems to be the policy
for Babel plugins, per this PR: https://github.com/babel/babel/pull/6778
2018-01-19 18:19:31 -05:00
Ben Newman
b35ce7d168 Update meteor-babel to version 7.0.0-beta.36. 2017-12-30 14:02:58 -05:00
Ben Newman
8fe0c41091 Update various @babel/runtime version constraints to -beta.35. 2017-12-20 15:21:08 -05:00
Ben Newman
b16a61c98b Fix #9235 by bundling package.json stubs even if "main" absent. 2017-12-12 15:45:02 -05:00
Ben Newman
b343ec8568 Fix #9305 by including default when mirroring module exports.
This functionality was added in reify@0.13.3:
10c90cd0a2

The changes to modules-test-plugin/plugin.js cause files like array.arson
to mirror array.arson.js, which exercises module.makeNsSetter(true) and
relies on default exports.
2017-12-12 13:31:28 -05:00
Ben Newman
c28440ab81 Fix warnings about missing @-scoped npm packages. 2017-12-12 13:30:59 -05:00
Ben Newman
baf889695a Use Babel 7 to compile package and application code, too. 2017-12-05 09:52:54 -05:00
Ben Newman
9526ce8976 Test that object-valued package.json "browser" fields are respected.
Regression test for #6890.
2017-11-06 15:46:09 -05:00
Ben Newman
234fb35174 Update modules test app to Meteor 1.6. 2017-11-06 15:09:55 -05:00
Ben Newman
301c1fe616 Update modules test app to use meteor-node-stubs@0.3.2. 2017-10-18 21:52:14 -04:00
Ben Newman
2692f99f7a Merge branch 'devel' into release-1.6 2017-10-12 13:49:27 -04:00
Geoffrey Booth
b2ec292fd2 Update another test to reflect new extension for imported CoffeeScript files 2017-10-12 10:26:05 -04:00
Ben Newman
1a8efdc31f Merge branch 'devel' into release-1.6 2017-10-02 13:44:25 -04:00
Jesse Rosenberger
efcc6945ba Update the modules test app to Meteor 1.5.2.2. 2017-10-02 17:47:12 +03:00
Ben Newman
8ed3d333f9 Merge branch 'devel' into release-1.6 2017-09-26 12:31:40 -04:00
Ben Newman
cf45eb0f8c Update the modules test app to Meteor 1.5.2.1. 2017-09-26 12:29:04 -04:00
Ben Newman
38b5ac9ed3 Revert core package upgrades to Babel 7 for now.
While Babel 7 seems to work perfectly well, and the process of upgrading
has been useful, the upgrade is going to require Meteor developers to
update the babel-runtime npm package and their .babelrc plugins, a chore
with which Meteor can't help very much.

On top of that, Babel 7 is still in early beta. I don't want to ship
Meteor 1.6 with a critical component that could change in unexpected ways,
and I don't want to wait for Babel 7 to be finalized to ship Meteor 1.6.

Note that the Meteor command-line tool is still implemented using Babel 7,
which has historically been a great way to gain confidence in
Babel-related changes before pushing them out to all Meteor developers.

@GeoffreyBooth This should take some pressure off the CoffeeScript upgrade
for now. Let's aim for Meteor 1.6.1 for Babel 7 and CoffeeScript 2.0.
2017-09-22 17:19:26 -04:00
Ben Newman
f90bc3f29e Upgrade babel-runtime dependency of modules test app. 2017-09-14 18:20:00 -04:00
Ben Newman
0d26adfee5 Merge branch 'devel' into release-1.6 2017-09-13 12:27:45 -04:00
Ben Newman
d6666c96f5 Update modules test app to Meteor 1.5.2. 2017-09-11 15:27:25 -04:00
Ben Newman
31fa502148 Enable transform-do-expressions in production for modules test app. 2017-09-11 15:24:47 -04:00
Ben Newman
004c8d0fe1 Move .babelrc "env" test to imports directory of modules test app. 2017-08-10 13:44:39 -04:00
Ben Newman
03dedce089 Update package-lock.json for modules test app. 2017-08-10 13:09:28 -04:00
Ben Newman
f7f76f6540 Move .babelrc "env" test to imports directory of modules test app. 2017-08-10 13:08:32 -04:00
Ben Newman
789c0e433e Reinstate .babelrc "env" test, with more reliable NODE_ENV. 2017-08-08 19:33:51 -04:00
Ben Newman
408bbdb705 Reinstate .babelrc "env" test, with more reliable NODE_ENV. 2017-08-08 19:32:28 -04:00
Ben Newman
a8b78fc413 Remove .babelrc "env" test for now.
This has been failing consistently on Circle CI, so I'm disabling it until
I know how to fix it better: https://circleci.com/gh/meteor/meteor/5068
2017-08-08 19:20:40 -04:00
Ben Newman
b70449ae4d Remove .babelrc "env" test for now.
This has been failing consistently on Circle CI, so I'm disabling it until
I know how to fix it better: https://circleci.com/gh/meteor/meteor/5068
2017-08-08 19:19:19 -04:00
Ben Newman
0bf08a5f99 Merge branch 'release-1.5.2' into release-1.6 2017-08-08 18:40:46 -04:00
Ben Newman
6de5c25fed Enable transform-do-expressions in production for modules test app.
The modules test app appears to be running with process.env.NODE_ENV equal
to "production" on Circle CI: https://circleci.com/gh/meteor/meteor/5030.

Enabling this transform in production as well as development is fine
because we primarily want to test that plugins from the "env" section of
.babelrc are respected, regardless of the value of process.env.NODE_ENV.
Using different plugins in production might be worth testing, too, but
that's less critical.

Follow-up to #8963.
2017-08-07 16:19:09 -04:00
Jordan Brant Baker
77ecbabf60 Support "env" in .babelrc files. (#8963) 2017-08-07 13:23:56 -04:00
Ben Newman
d2e4661fe4 Remove assertion in modules test app no longer valid in Node 8.
Since this code is no longer being transpiled in Meteor 1.6 and Node 8,
there is no arguments object involved.
2017-07-22 10:20:51 -04:00
Ben Newman
1b636ebf04 Merge branch 'release-1.5.2' into release-1.6 2017-07-21 19:52:47 -04:00
Ben Newman
3090ac7282 Update the modules test app to Meteor 1.5.1. 2017-07-20 10:21:54 -04:00
Ben Newman
cfc2c25d1d Update package-lock.json and shrinkwraps for modules test app. 2017-06-27 19:22:04 -04:00
Ben Newman
b80b4108b1 Fix modules tests broken by the upgrade to npm 5.0.3.
The new version of npm no longer tolerates stray packages in node_modules
that are not mentioned in package.json, such as node_modules/repl.
2017-06-27 19:22:04 -04:00
Ben Newman
b3b464b614 Miscellaneous updates due to changes between Node 5 and 7.
https://github.com/nodejs/node/wiki/Breaking-changes-between-v5-and-v6
https://github.com/nodejs/node/wiki/Breaking-changes-between-v6-and-v7
2017-06-05 18:57:52 -04:00
Ben Newman
40f1d99e2c Stop polyfilling global.Buffer in modules test app. 2017-06-02 16:37:19 -04:00
Ben Newman
929fa0e90e Test that require("module") returns Module constructor on the client.
On the server, require("module") returns Node's native Module constructor,
which is not the same as module.constructor in our server JS bundle.
2017-06-02 16:26:54 -04:00
Ben Newman
a7feffd5a6 Upgrade the modules test app to Meteor 1.5. 2017-06-02 14:31:37 -04:00
Ben Newman
1df6668cc9 Test that importing the winston npm package works now.
This is a test that should have accompanied my previous commit
81a07ed84f.
2017-05-29 19:37:33 -04:00
Ben Newman
6f75eae135 Remove automatic Buffer polyfill.
This polyfill is unnecessary in Node, and added a whopping 22KB to the
minified client bundle. If you really need the Buffer API on the client,
you can get it from require("buffer").Buffer.
2017-04-19 17:41:11 -04:00
Ben Newman
10127cea1f Fix modules test app now that exports.__esModule is non-enumerable.
3973bbad7f
2017-03-25 12:00:18 -04:00
Ben Newman
da57ab69a8 Remove version constraints from modules test app.
This would have prevented this Circle CI self-test failure:
https://circleci.com/gh/meteor/meteor/3595#tests/containers/3
2017-03-16 13:08:06 -04:00
Seth Murphy
be88d7772a Rebased off meteor/devel 2017-02-28 16:12:21 -05:00
Ben Newman
e43a5d07f0 Update the modules test app to Meteor 1.4.3.1. 2017-02-14 09:55:38 -05:00
Ben Newman
672c4f338a Add the modules test app to the self-test suite.
I've been running these tests manually ever since Meteor 1.3, but they
really should run every time.
2017-02-09 12:09:48 -05:00
Ben Newman
a3e8cf6763 Update modules test app to Meteor 1.4.2.4. 2017-02-02 15:46:59 -05:00
Ben Newman
3120b9324d Update modules test app to Meteor 1.4.2.3. 2016-11-18 11:01:47 -05:00