You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello. I am not sure why the require statement in test/test.js (const rollupStarterPlugin = require('..');
) works but other require statements don't.
Steps to reproduce issue:
clone repo
npm i
npm test (no problems)
create new file src/test-import.js containing export default 5
add to test/test.js const testImport = require('../src/test-import')
run npm test, get error "SyntaxError: Unexpected token 'export'" referring to export default 5 in src/test-import.js
The text was updated successfully, but these errors were encountered:
Hello. I am not sure why the require statement in test/test.js (
const rollupStarterPlugin = require('..');
) works but other require statements don't.
Steps to reproduce issue:
clone repo
npm i
npm test (no problems)
create new file src/test-import.js containing
export default 5
add to test/test.js
const testImport = require('../src/test-import')
run npm test, get error "SyntaxError: Unexpected token 'export'" referring to
export default 5
in src/test-import.jsThe text was updated successfully, but these errors were encountered: