Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: add proxy-compat comment back to dist files #3526

Merged
merged 1 commit into from
May 22, 2023

Conversation

nolanlawson
Copy link
Collaborator

Details

This accidentally got removed in #3456, but we need it on platform.

Does this pull request introduce a breaking change?

  • ✅ No, it does not introduce a breaking change.

Does this pull request introduce an observable change?

  • ✅ No, it does not introduce an observable change.

GUS work item

W-13402515

@nolanlawson nolanlawson requested a review from a team as a code owner May 22, 2023 21:15
@@ -21,7 +21,8 @@ const commonjs = require('@rollup/plugin-commonjs');
const packageRoot = process.cwd();
const packageJson = JSON.parse(readFileSync(path.resolve(packageRoot, './package.json'), 'utf-8'));
const { name: packageName, version, dependencies, peerDependencies } = packageJson;
const banner = `/**\n * Copyright (C) 2023 salesforce.com, inc.\n */`;
// proxy-compat-disable tells compat mode not to apply - framework files aren't designed for the compat transform
const banner = `/* proxy-compat-disable */\n/**\n * Copyright (C) 2023 salesforce.com, inc.\n */`;
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only 4 files matter to lwc-platform: engine-dom, engine-server, synthetic-shadow, and wire-service.

If you check the old bundle files that lwc-platform was using (esm/2017), all of them have proxy-compat-disable except for wire-service.

Looking at wire-service, I don't think it matters either way whether it has the comment or not, so we can just be consistent everywhere.

@ravijayaramappa ravijayaramappa merged commit 55cdb7e into master May 22, 2023
@ravijayaramappa ravijayaramappa deleted the nolan/proxy-compat branch May 22, 2023 21:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants