Skip to content

Commit

Permalink
Fix plugin forwards and backwards compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
yamadapc committed Aug 21, 2024
1 parent c474249 commit 248800f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/core/core/src/loadAtlaspackPlugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -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<T>(
pluginName: PackageName,
Expand Down
2 changes: 1 addition & 1 deletion packages/core/integration-tests/test/cache.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 () {
Expand Down
2 changes: 1 addition & 1 deletion packages/core/plugin/src/PluginAPI.js
Original file line number Diff line number Diff line change
Expand Up @@ -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<T>(opts: TransformerOpts<T>) {
Expand Down

0 comments on commit 248800f

Please sign in to comment.