forked from Azure/azure-sdk-for-js
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove trailing slash from namedExports
- Was required due to rollup/rollup-plugin-commonjs#394 - Fixed in [email protected]
- Loading branch information
1 parent
b21c762
commit 2956422
Showing
12 changed files
with
15 additions
and
51 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -94,12 +94,9 @@ export function browserConfig(test = false) { | |
preferBuiltins: false | ||
}), | ||
cjs({ | ||
// When "[email protected]" is used with "[email protected]", named exports of | ||
// modules with built-in names must have a trailing slash. | ||
// https://github.com/rollup/rollup-plugin-commonjs/issues/394 | ||
namedExports: { | ||
"events/": ["EventEmitter"], | ||
"assert/": ["ok", "deepEqual", "equal", "fail", "deepStrictEqual", "notDeepEqual"] | ||
events: ["EventEmitter"], | ||
assert: ["ok", "deepEqual", "equal", "fail", "deepStrictEqual", "notDeepEqual"] | ||
} | ||
}) | ||
] | ||
|
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 |
---|---|---|
|
@@ -130,12 +130,9 @@ export function browserConfig(test = false) { | |
}), | ||
|
||
cjs({ | ||
// When "[email protected]" is used with "[email protected]", named exports of | ||
// modules with built-in names must have a trailing slash. | ||
// https://github.com/rollup/rollup-plugin-commonjs/issues/394 | ||
namedExports: { | ||
chai: ["should"], | ||
"assert/": ["equal", "deepEqual", "notEqual"] | ||
assert: ["equal", "deepEqual", "notEqual"] | ||
} | ||
}), | ||
|
||
|
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 |
---|---|---|
|
@@ -138,11 +138,8 @@ export function browserConfig(test = false) { | |
}), | ||
|
||
cjs({ | ||
// When "[email protected]" is used with "[email protected]", named exports of | ||
// modules with built-in names must have a trailing slash. | ||
// https://github.com/rollup/rollup-plugin-commonjs/issues/394 | ||
namedExports: { | ||
"events/": ["EventEmitter"] | ||
events: ["EventEmitter"] | ||
} | ||
}), | ||
|
||
|
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 |
---|---|---|
|
@@ -106,10 +106,7 @@ export function browserConfig(test = false) { | |
preferBuiltins: false | ||
}), | ||
cjs({ | ||
// When "[email protected]" is used with "[email protected]", named exports of | ||
// modules with built-in names must have a trailing slash. | ||
// https://github.com/rollup/rollup-plugin-commonjs/issues/394 | ||
namedExports: { "events/": ["EventEmitter"] } | ||
namedExports: { events: ["EventEmitter"] } | ||
}), | ||
json() | ||
] | ||
|
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 |
---|---|---|
|
@@ -82,10 +82,7 @@ export function browserConfig(test = false, production = false) { | |
preferBuiltins: false | ||
}), | ||
cjs({ | ||
// When "[email protected]" is used with "[email protected]", named exports of | ||
// modules with built-in names must have a trailing slash. | ||
// https://github.com/rollup/rollup-plugin-commonjs/issues/394 | ||
namedExports: { "events/": ["EventEmitter"] } | ||
namedExports: { events: ["EventEmitter"] } | ||
}), | ||
viz({ filename: "browser/browser-stats.html", sourcemap: false }) | ||
] | ||
|
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 |
---|---|---|
|
@@ -118,10 +118,7 @@ export function browserConfig(test = false) { | |
}), | ||
cjs({ | ||
namedExports: { | ||
// When "[email protected]" is used with "[email protected]", named exports of | ||
// modules with built-in names must have a trailing slash. | ||
// https://github.com/rollup/rollup-plugin-commonjs/issues/394 | ||
"assert/": ["ok", "equal", "strictEqual"] | ||
assert: ["ok", "equal", "strictEqual"] | ||
} | ||
}) | ||
] | ||
|
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 |
---|---|---|
|
@@ -118,10 +118,7 @@ export function browserConfig(test = false) { | |
}), | ||
cjs({ | ||
namedExports: { | ||
// When "[email protected]" is used with "[email protected]", named exports of | ||
// modules with built-in names must have a trailing slash. | ||
// https://github.com/rollup/rollup-plugin-commonjs/issues/394 | ||
"assert/": ["ok", "equal", "strictEqual"] | ||
assert: ["ok", "equal", "strictEqual"] | ||
} | ||
}) | ||
] | ||
|
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 |
---|---|---|
|
@@ -143,10 +143,7 @@ export function browserConfig({ test = false, production = false } = {}) { | |
dedupe: ["buffer"] | ||
}), | ||
cjs({ | ||
// When "[email protected]" is used with "[email protected]", named exports of | ||
// modules with built-in names must have a trailing slash. | ||
// https://github.com/rollup/rollup-plugin-commonjs/issues/394 | ||
namedExports: { "events/": ["EventEmitter"], long: ["ZERO"] } | ||
namedExports: { events: ["EventEmitter"], long: ["ZERO"] } | ||
}), | ||
|
||
// rhea and rhea-promise use the Buffer global which requires | ||
|
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 |
---|---|---|
|
@@ -108,12 +108,9 @@ export function browserConfig(test = false, production = false) { | |
preferBuiltins: false | ||
}), | ||
cjs({ | ||
// When "[email protected]" is used with "[email protected]", named exports of | ||
// modules with built-in names must have a trailing slash. | ||
// https://github.com/rollup/rollup-plugin-commonjs/issues/394 | ||
namedExports: { | ||
"events/": ["EventEmitter"], | ||
"assert/": ["ok", "deepEqual", "equal", "fail", "deepStrictEqual", "notDeepEqual"] | ||
events: ["EventEmitter"], | ||
assert: ["ok", "deepEqual", "equal", "fail", "deepStrictEqual", "notDeepEqual"] | ||
} | ||
}) | ||
] | ||
|
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 |
---|---|---|
|
@@ -108,12 +108,9 @@ export function browserConfig(test = false, production = false) { | |
preferBuiltins: false | ||
}), | ||
cjs({ | ||
// When "[email protected]" is used with "[email protected]", named exports of | ||
// modules with built-in names must have a trailing slash. | ||
// https://github.com/rollup/rollup-plugin-commonjs/issues/394 | ||
namedExports: { | ||
"events/": ["EventEmitter"], | ||
"assert/": [ | ||
events: ["EventEmitter"], | ||
assert: [ | ||
"ok", | ||
"deepEqual", | ||
"equal", | ||
|
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 |
---|---|---|
|
@@ -108,10 +108,7 @@ export function browserConfig(test = false, production = false) { | |
}), | ||
cjs({ | ||
namedExports: { | ||
// When "[email protected]" is used with "[email protected]", named exports of | ||
// modules with built-in names must have a trailing slash. | ||
// https://github.com/rollup/rollup-plugin-commonjs/issues/394 | ||
"assert/": ["ok", "deepEqual", "equal", "fail", "deepStrictEqual"] | ||
assert: ["ok", "deepEqual", "equal", "fail", "deepStrictEqual"] | ||
} | ||
}) | ||
] | ||
|
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 |
---|---|---|
|
@@ -82,10 +82,7 @@ export function browserConfig(test = false, production = false) { | |
preferBuiltins: false | ||
}), | ||
cjs({ | ||
// When "[email protected]" is used with "[email protected]", named exports of | ||
// modules with built-in names must have a trailing slash. | ||
// https://github.com/rollup/rollup-plugin-commonjs/issues/394 | ||
namedExports: { "events/": ["EventEmitter"] } | ||
namedExports: { events: ["EventEmitter"] } | ||
}), | ||
viz({ filename: "browser/browser-stats.html", sourcemap: false }) | ||
] | ||
|