-
Notifications
You must be signed in to change notification settings - Fork 277
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* deps: upgrade to rollup 2 and upgrade related dependencies * test: update expected output for all rollup cases * refactor: remove useless namedExports option ref: rollup/plugins#149 * chore: upgrade rollup to 2.33.2 Co-authored-by: 信鑫-King <[email protected]> * deps: upgrade rollup to 2.33.3 Co-authored-by: 信鑫-King <[email protected]> Co-authored-by: 信鑫-King <[email protected]>
- Loading branch information
1 parent
2dd0779
commit 133b9fe
Showing
37 changed files
with
598 additions
and
986 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/father-build/src/fixtures/build/config-array/expected/index.umd.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 13 additions & 3 deletions
16
...ther-build/src/fixtures/build/require-node_modules-in-sub-directory/expected/index.umd.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
...ages/father-build/src/fixtures/build/rollup-commonjs-deps-auto-named-exports/.fatherrc.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
|
||
export default { | ||
umd: { | ||
minFile: false, | ||
}, | ||
}; |
34 changes: 34 additions & 0 deletions
34
...er-build/src/fixtures/build/rollup-commonjs-deps-auto-named-exports/expected/index.umd.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
(function (factory) { | ||
typeof define === 'function' && define.amd ? define(factory) : | ||
factory(); | ||
}((function () { 'use strict'; | ||
|
||
function createCommonjsModule(fn, basedir, module) { | ||
return module = { | ||
path: basedir, | ||
exports: {}, | ||
require: function (path, base) { | ||
return commonjsRequire(path, (base === undefined || base === null) ? module.path : base); | ||
} | ||
}, fn(module, module.exports), module.exports; | ||
} | ||
|
||
function commonjsRequire () { | ||
throw new Error('Dynamic requires are not currently supported by @rollup/plugin-commonjs'); | ||
} | ||
|
||
var foo_1 = createCommonjsModule(function (module, exports) { | ||
var foo = exports; | ||
|
||
foo.a = function () { | ||
return 'a'; | ||
}; | ||
foo.b = function () { | ||
return 'b'; | ||
}; | ||
}); | ||
|
||
console.log(foo_1.a()); | ||
console.log(foo_1.b()); | ||
|
||
}))); |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
12 changes: 0 additions & 12 deletions
12
packages/father-build/src/fixtures/build/rollup-commonjs-deps-named-exports/.fatherrc.js
This file was deleted.
Oops, something went wrong.
26 changes: 0 additions & 26 deletions
26
.../father-build/src/fixtures/build/rollup-commonjs-deps-named-exports/expected/index.umd.js
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
packages/father-build/src/fixtures/build/rollup-css-inject/expected/index.esm.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
var css = "\n.a { color: green; }\n"; | ||
var css_248z = "\n.a { color: green; }\n"; | ||
|
||
console.log(css); | ||
console.log(css_248z); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/father-build/src/fixtures/build/rollup-esm-minify/expected/index.esm.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export default function(){console.log("foo")} | ||
function o(){console.log("foo")}export default o; |
2 changes: 1 addition & 1 deletion
2
packages/father-build/src/fixtures/build/rollup-esm-mjs/expected/index.mjs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
console.log("bar");export default function(){} | ||
function o(){}console.log("bar");export default o; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 0 additions & 22 deletions
22
packages/father-build/src/fixtures/build/rollup-svgr/dist/index.esm.js
This file was deleted.
Oops, something went wrong.
12 changes: 6 additions & 6 deletions
12
packages/father-build/src/fixtures/build/rollup-svgr/expected/index.esm.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/father-build/src/fixtures/build/rollup-umd-auto-name/expected/index.umd.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 5 additions & 3 deletions
8
packages/father-build/src/fixtures/build/rollup-umd-globals/expected/index.umd.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,13 @@ | ||
(function (global, factory) { | ||
typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('foo')) : | ||
typeof define === 'function' && define.amd ? define(['foo'], factory) : | ||
(global = global || self, factory(global.$)); | ||
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.$)); | ||
}(this, (function (foo) { 'use strict'; | ||
|
||
foo = foo && foo.hasOwnProperty('default') ? foo['default'] : foo; | ||
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } | ||
|
||
foo.bar(); | ||
var foo__default = /*#__PURE__*/_interopDefaultLegacy(foo); | ||
|
||
foo__default['default'].bar(); | ||
|
||
}))); |
2 changes: 1 addition & 1 deletion
2
packages/father-build/src/fixtures/build/rollup-umd-name/expected/index.umd.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/father-build/src/fixtures/build/rollup-umd-overrides/expected/fetch.umd.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/father-build/src/fixtures/build/rollup-umd-overrides/expected/index.umd.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/father-build/src/fixtures/build/rollup-umd-sourcemap/expected/index.umd.js
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.