Skip to content

Commit 2725ede

Browse files
authored
Merge pull request rafi16jan#2 from alanjds/patch-1
HACK: Make parceljs ignore the webpack-only `!raw-loader!` require
2 parents 8eadb53 + 3a5c602 commit 2725ede

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ if (typeof webpackJsonp !== 'object') {
2121
pyjs = require('fs').readFileSync(__dirname + '/js.py').toString();
2222
}
2323
else {
24-
pyjs = require('!raw-loader!./js.py').default;
24+
pyjs = require('!raw-loader!' + './js.py').default;
2525
}
2626

2727
function wait_exist(fn) {

lib/micropython.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ if (typeof webpackJsonp !== 'object') {
8484
Module.emterpreterFile = file.buffer.slice(file.byteOffset, file.byteOffset + file.byteLength);
8585
}
8686
else {
87-
Module.emterpreterFile = require('!arraybuffer-loader!./micropython.binary');
87+
Module.emterpreterFile = require('!arraybuffer-loader!' + './micropython.binary');
8888
}
8989
// Copyright 2010 The Emscripten Authors. All rights reserved.
9090
// Emscripten is available under two separate licenses, the MIT license and the

0 commit comments

Comments
 (0)