Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix isIncluded error when using rollup-plugin-typescript2 (#4725)
* Wait for this.load before closing bundle * Support this.load after build without awaiting it * Do not await this.load in build as that would be the job of the plugin
- Loading branch information
1 parent
96a5ba4
commit 4ee9a20
Showing
6 changed files
with
33 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
const path = require('node:path'); | ||
|
||
module.exports = { | ||
description: 'supports this.load() in buildEnd and renderStart', | ||
options: { | ||
plugins: [ | ||
{ | ||
name: 'test', | ||
buildEnd() { | ||
this.load({ id: path.join(__dirname, 'other2.js') }); | ||
}, | ||
moduleParsed({ id }) { | ||
if (id.endsWith('main.js')) { | ||
this.load({ id: path.join(__dirname, 'other1.js') }); | ||
} | ||
}, | ||
renderStart() { | ||
this.load({ id: path.join(__dirname, 'other3.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 @@ | ||
assert.ok(true); |
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 @@ | ||
assert.ok(true); |
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 @@ | ||
assert.ok(true); |
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 @@ | ||
assert.ok(true); |