Skip to content

Commit

Permalink
Remove alias plugin, as tooling will eventually support aliases / "se…
Browse files Browse the repository at this point in the history
  • Loading branch information
NullVoxPopuli committed Feb 5, 2022
1 parent 44de78e commit e63cf9f
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions packages/addon-dev/sample-typescript-rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
import path from 'path';

import alias from '@rollup/plugin-alias';
import ts from 'rollup-plugin-ts';
import { defineConfig } from 'rollup';
import { Addon } from '@embroider/addon-dev/rollup';

import packageJson from './package.json';

const addon = new Addon({
srcDir: 'src',
destDir: 'dist',
Expand All @@ -32,27 +29,6 @@ export default defineConfig({
// and updates an 'ember-addon.app-js' entry in your package.json
addon.appReexports([...globallyAvailable]),

// Allow top-level imports (what folks are used to from v1 addons)
// During the build, anything referencing a top-level import will be
// replaced with a relative import.
// DANGER: it's somewhat easy to cause circular references with this tool
alias({
entries: [
{
find: '#types',
replacement: path.resolve('src', '-private', 'types.ts'),
},
{
find: packageJson.name,
replacement: path.resolve('src'),
},
{
find: `${packageJson.name}/(.*)`,
replacement: path.resolve('src/$1'),
},
],
}),

// This babel config should *not* apply presets or compile away ES modules.
// It exists only to provide development niceties for you, like automatic
// template colocation.
Expand Down

0 comments on commit e63cf9f

Please sign in to comment.