Merge branch 'tmp' into master
Xavier Guimard
3 years ago
20 | 20 |
|
21 | 21 |
-- Xavier Guimard <yadd@debian.org> Fri, 18 Sep 2020 08:50:07 +0200
|
22 | 22 |
|
|
23 |
node-rollup-plugin-commonjs (10.0.1+really.9.2.0-12) unstable; urgency=medium
|
|
24 |
|
|
25 |
* Team upload
|
|
26 |
* Bump debhelper compatibility level to 13
|
|
27 |
* Fix test for rollup ≥ 1.32.1
|
|
28 |
|
|
29 |
-- Xavier Guimard <yadd@debian.org> Mon, 21 Sep 2020 16:27:58 +0200
|
|
30 |
|
23 | 31 |
node-rollup-plugin-commonjs (10.0.1+really.9.2.0-11) unstable; urgency=medium
|
24 | 32 |
|
25 | 33 |
* Team upload
|
|
0 |
Description: fix test for rollup ≥ 1.32.1
|
|
1 |
Author: Xavier Guimard <yadd@debian.org>
|
|
2 |
Forwarded: not-needed
|
|
3 |
Last-Update: 2020-09-21
|
|
4 |
|
|
5 |
--- a/legacy/test/test.js
|
|
6 |
+++ b/legacy/test/test.js
|
|
7 |
@@ -480,9 +480,10 @@
|
|
8 |
plugins: [commonjs()]
|
|
9 |
});
|
|
10 |
} catch (error) {
|
|
11 |
- assert.equal(
|
|
12 |
- error.message,
|
|
13 |
- `'named' is not exported by samples${path.sep}reexport${path.sep}reexport.js`
|
|
14 |
+ assert.ok(
|
|
15 |
+ error.message.match(new RegExp(
|
|
16 |
+ '^' + `'named' is not exported by samples${path.sep}reexport${path.sep}reexport.js`
|
|
17 |
+ ));
|
|
18 |
);
|
|
19 |
}
|
|
20 |
});
|
|
21 |
@@ -693,44 +694,6 @@
|
|
22 |
|
|
23 |
module.exports = main;
|
|
24 |
`
|
|
25 |
- );
|
|
26 |
- });
|
|
27 |
-
|
|
28 |
- it('produces optimized code when importing esm without a default export', async () => {
|
|
29 |
- const bundle = await rollup({
|
|
30 |
- input: 'main.js',
|
|
31 |
- plugins: [
|
|
32 |
- commonjs(),
|
|
33 |
- {
|
|
34 |
- load(id) {
|
|
35 |
- if (id === 'main.js') {
|
|
36 |
- return 'module.exports = require("esm.js")';
|
|
37 |
- }
|
|
38 |
- if (id === 'esm.js') {
|
|
39 |
- return 'export const value = "value";';
|
|
40 |
- }
|
|
41 |
- },
|
|
42 |
- resolveId(id) {
|
|
43 |
- return id;
|
|
44 |
- }
|
|
45 |
- }
|
|
46 |
- ]
|
|
47 |
- });
|
|
48 |
- const code = await getCodeFromBundle(bundle);
|
|
49 |
- assert.equal(
|
|
50 |
- code,
|
|
51 |
- `'use strict';
|
|
52 |
-
|
|
53 |
-const value = "value";
|
|
54 |
-
|
|
55 |
-var esm = /*#__PURE__*/Object.freeze({
|
|
56 |
- value: value
|
|
57 |
-});
|
|
58 |
-
|
|
59 |
-var main = esm;
|
|
60 |
-
|
|
61 |
-module.exports = main;
|
|
62 |
-`
|
|
63 |
);
|
|
64 |
});
|
|
65 |
|
0 | 0 |
0002-use-babel-if-needed.patch
|
1 | 1 |
fix-legacy-tests.diff
|
2 | 2 |
switch-test-from-ava-to-tape.diff
|
|
3 |
fix-testsuite-for-new-rollup.patch
|