From 248800f85afedcb1af810f56180250b8e9202c28 Mon Sep 17 00:00:00 2001 From: Pedro Yamada Date: Wed, 21 Aug 2024 11:34:24 +1000 Subject: [PATCH] Fix plugin forwards and backwards compatibility --- packages/core/core/src/loadAtlaspackPlugin.js | 2 +- packages/core/integration-tests/test/cache.js | 2 +- packages/core/integration-tests/test/incremental-bundling.js | 2 +- packages/core/plugin/src/PluginAPI.js | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/core/core/src/loadAtlaspackPlugin.js b/packages/core/core/src/loadAtlaspackPlugin.js index 9b27d28b4..cbd419f40 100644 --- a/packages/core/core/src/loadAtlaspackPlugin.js +++ b/packages/core/core/src/loadAtlaspackPlugin.js @@ -24,7 +24,7 @@ import {type ProjectPath, toProjectPath} from './projectPath'; import {version as ATLASPACK_VERSION} from '../package.json'; const NODE_MODULES = `${path.sep}node_modules${path.sep}`; -const CONFIG = Symbol.for('atlaspack-plugin-config'); +const CONFIG = Symbol.for('parcel-plugin-config'); export default async function loadPlugin( pluginName: PackageName, diff --git a/packages/core/integration-tests/test/cache.js b/packages/core/integration-tests/test/cache.js index deb100331..5e136b576 100644 --- a/packages/core/integration-tests/test/cache.js +++ b/packages/core/integration-tests/test/cache.js @@ -6386,7 +6386,7 @@ describe.v2('cache', function () { import {Bundler} from '@atlaspack/plugin' import DefaultBundler from '@atlaspack/bundler-default' - const CONFIG = Symbol.for('atlaspack-plugin-config'); + const CONFIG = Symbol.for('parcel-plugin-config'); export default new Bundler({ loadConfig({config, options}) { diff --git a/packages/core/integration-tests/test/incremental-bundling.js b/packages/core/integration-tests/test/incremental-bundling.js index 4b0b1dcba..639208e78 100644 --- a/packages/core/integration-tests/test/incremental-bundling.js +++ b/packages/core/integration-tests/test/incremental-bundling.js @@ -16,7 +16,7 @@ import {NodePackageManager} from '@atlaspack/package-manager'; import {type Asset} from '@atlaspack/types'; -const CONFIG = Symbol.for('atlaspack-plugin-config'); +const CONFIG = Symbol.for('parcel-plugin-config'); let packageManager = new NodePackageManager(inputFS, '/'); describe.v2('incremental bundling', function () { diff --git a/packages/core/plugin/src/PluginAPI.js b/packages/core/plugin/src/PluginAPI.js index 109b0eb9c..aaef73d44 100644 --- a/packages/core/plugin/src/PluginAPI.js +++ b/packages/core/plugin/src/PluginAPI.js @@ -13,7 +13,7 @@ import type { Validator as ValidatorOpts, } from '@atlaspack/types'; -const CONFIG = Symbol.for('atlaspack-plugin-config'); +const CONFIG = Symbol.for('parcel-plugin-config'); export class Transformer { constructor(opts: TransformerOpts) {