Skip to content

Commit e485266

Browse files
authored
Merge pull request #656 from izaera/fragments-integration
fix: use a module name placeholder for fragments
2 parents 8bd9cbf + eb4fb66 commit e485266

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

.yarnrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
--publish.tag next
12
--version.preid pre

packages/liferay-npm-bundler/src/adapt/liferay-fragment/index.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,10 @@ async function transformBundles(): Promise<void> {
3737

3838
const destFile = project.outputDir.join(moduleName);
3939

40-
const {name, version} = project.pkgJson;
41-
4240
await transformJsSourceFile(
4341
sourceFile,
4442
destFile,
45-
wrapModule(`${name}@${version}/${moduleName}`, {
43+
wrapModule('__FRAGMENT_MODULE_NAME__', {
4644
defineDependencies: {
4745
__MODULE__: 'module',
4846
__REQUIRE__: 'require',

0 commit comments

Comments
 (0)