Skip to content

Commit

Permalink
Merge branch 'master' into gh-62
Browse files Browse the repository at this point in the history
  • Loading branch information
Rich-Harris committed Dec 3, 2020
2 parents 9927ae1 + d8bfbe3 commit 4373401
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions packages/kit/src/api/build/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,23 +79,11 @@ export async function build(config) {

const entry = path.resolve(`${unoptimized}/client/_app/assets/runtime/internal/start.js`);

// https://github.com/snowpackjs/snowpack/discussions/1395
const re = /(\.\.\/)+_app\/assets\/app\//;
const work_around_alias_bug = (type) => ({
name: 'work-around-alias-bug',
resolveId(imported) {
if (re.test(imported)) {
return path.resolve(`${unoptimized}/${type}/_app/assets/app`, imported.replace(re, ''));
}
}
});

const client_chunks = await rollup({
input: {
entry
},
plugins: [
work_around_alias_bug('client'),
{
name: 'deproxy-css',
async resolveId(importee, importer) {
Expand Down Expand Up @@ -284,7 +272,6 @@ export async function build(config) {
const server_chunks = await rollup({
input: server_input,
plugins: [
work_around_alias_bug('server'),
{
name: 'remove-css',
load(id) {
Expand Down

0 comments on commit 4373401

Please sign in to comment.